From a8c2e0102dd3ff0ca6285b74dd0bb8bad8c6372a Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 5 Jul 2012 19:53:08 +0100 Subject: Fix input insertion. The gap in teh input was being created at the wrong insertion point! --- src/utils/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/buffer.c') 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); -- cgit v1.2.3