Remove debug lines

This commit is contained in:
2024-02-11 18:58:27 -06:00
parent fd07dfd962
commit 817271a1bb

View File

@@ -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;
}