From 7851949aebf66ed34dc5540bc6f749df311cd9ae Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Mon, 27 May 2024 06:53:23 +0200 Subject: [PATCH] Fixed another memory error due to copy pasting code in early stagezs --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index d673329..210ee3a 100644 --- a/lib.c +++ b/lib.c @@ -154,7 +154,7 @@ static int ink_add_indigenous(struct context* ctx, const char* name, struct elem int new_count; void* renewed; new_count = (ctx->words_capacity + ctx->words_capacity/2); - renewed = ctx->realloc(ctx->words, sizeof(struct native_fn) * new_count); + renewed = ctx->realloc(ctx->words, sizeof(struct fn) * new_count); if(renewed == NULL) { return -1; } else {