From 817271a1bbcd45560790a897106fff5b6508a959 Mon Sep 17 00:00:00 2001 From: Nate Choe Date: Sun, 11 Feb 2024 18:58:27 -0600 Subject: [PATCH] Remove debug lines --- src/strings.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/strings.c b/src/strings.c index 6177cd4..74844f3 100644 --- a/src/strings.c +++ b/src/strings.c @@ -42,7 +42,7 @@ error1: } int appendchar(struct string *string, char c) { - if (string->len+1 >= string->alloc) { + if (string->len >= string->alloc) { char *newdata; size_t newalloc; newalloc = string->alloc * 2; @@ -53,7 +53,6 @@ int appendchar(struct string *string, char c) { string->alloc = newalloc; } string->data[string->len++] = c; - string->data[string->len] = 0; return 0; }