diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-03-09 00:06:24 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-03-09 00:06:24 +0100 |
commit | 9caf870ef18f3a9d3876b72b13342f5caec45ad2 (patch) | |
tree | 84519309a4557f84e37e6162a903aac9a5bd3a19 | |
parent | 9c921269e69a10c0bdde189f1e4b4fd226647495 (diff) |
src: buffer: Fix growable buffer size
-rw-r--r-- | src/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index a3ee649..7851184 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -33,6 +33,7 @@ void append_growable_buffer(growable_buffer *buffer, char* content, for (i=0; i<length; i++){ buf[buffer->used + i] = content[i]; } + buffer->used += i; } void free_growable_buffer(growable_buffer *buffer) { |