diff options
-rw-r--r-- | src/utils/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/buffer.c b/src/utils/buffer.c index fcaf5d5..384e9a9 100644 --- a/src/utils/buffer.c +++ b/src/utils/buffer.c @@ -115,7 +115,7 @@ parserutils_error parserutils_buffer_insert(parserutils_buffer *buffer, return error; } - memmove(buffer->data + buffer->length + len, + memmove(buffer->data + offset + len, buffer->data + offset, buffer->length - offset); memcpy(buffer->data + offset, data, len); |