summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c1
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) {