Messed up list resizing, forgot to multiply allocated amount by the sizeof(void*).

master
MadcowOG 2023-04-22 16:11:51 -07:00
parent 3a6c255b97
commit 4ae6e8d5b1
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ void list_resize(struct List *list) {
return;
list->allocated *= 2;
list->data = realloc(list->data, list->allocated);
list->data = realloc(list->data, sizeof(void*) * list->allocated);
}
char *string_create(const char *fmt, ...) {