summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4130a0e)
raw | patch | inline | side by side (parent: 4130a0e)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 23 Apr 2014 21:39:58 +0000 (23:39 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 23 Apr 2014 21:39:58 +0000 (23:39 +0200) |
src/utils/strbuf.c | patch | blob | history |
diff --git a/src/utils/strbuf.c b/src/utils/strbuf.c
index ee419b7ea20994efaeeaac3d6ae1d246c402dcb0..822f01928c4437b40bb4d621f905cf0b649cea6a 100644 (file)
--- a/src/utils/strbuf.c
+++ b/src/utils/strbuf.c
assert(offset < strbuf->pos);
start = strbuf->string + offset;
- memmove(start, start + n, strbuf->pos - n);
+ memmove(start, start + n, len - n);
strbuf->pos -= n;
strbuf->string[strbuf->pos] = '\0';
} /* sdb_strbuf_skip */