diff options
author | Karel Klic <kklic@redhat.com> | 2010-06-17 18:56:08 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-06-17 18:56:08 +0200 |
commit | a184a464af0e333800754e5b7e06df0c4d2c47fe (patch) | |
tree | d7b6ebac0a11723804031469a1c298ac1313f47e /lib/Utils/strbuf.c | |
parent | 51af31acd7d26c9538b66f2f1f10ace452cc213f (diff) | |
download | abrt-a184a464af0e333800754e5b7e06df0c4d2c47fe.tar.gz abrt-a184a464af0e333800754e5b7e06df0c4d2c47fe.tar.xz abrt-a184a464af0e333800754e5b7e06df0c4d2c47fe.zip |
Fixed a flaw in strbuf_prepend_str (affecting duplicate checker)
Diffstat (limited to 'lib/Utils/strbuf.c')
-rw-r--r-- | lib/Utils/strbuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Utils/strbuf.c b/lib/Utils/strbuf.c index 2cefefe3..9ad74714 100644 --- a/lib/Utils/strbuf.c +++ b/lib/Utils/strbuf.c @@ -114,6 +114,7 @@ struct strbuf *strbuf_prepend_str(struct strbuf *strbuf, const char *str) assert(strbuf->len + len < strbuf->alloc); memmove(strbuf->buf + len, strbuf->buf, strbuf->len + 1); memcpy(strbuf->buf, str, len); + strbuf->len += len; return strbuf; } |