From e6cc6ce2e8d427e71a17f4a7f773cf8e1a4615c8 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 18 Aug 2025 13:51:49 +0200 Subject: [PATCH] fix: swapped calloc arguments --- src/dat/nbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dat/nbt.c b/src/dat/nbt.c index 8f6ffb2..73c8e3f 100644 --- a/src/dat/nbt.c +++ b/src/dat/nbt.c @@ -149,7 +149,7 @@ struct nbt_procdat nbt_initproc(struct nbt_path const *restrict pats, uint npats assert(mdpt > 0); // storing the segments of the current path - const char **cpat = (const char **)calloc(sizeof(void *), mdpt - 1); + const char **cpat = (const char **)calloc(mdpt - 1, sizeof(void *)); // return the initialised structure. return (struct nbt_procdat){