From 9caf870ef18f3a9d3876b72b13342f5caec45ad2 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sat, 9 Mar 2024 00:06:24 +0100 Subject: src: buffer: Fix growable buffer size --- src/buffer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/buffer.c') 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; iused + i] = content[i]; } + buffer->used += i; } void free_growable_buffer(growable_buffer *buffer) { -- cgit v1.2.3