fix: swapped calloc arguments

This commit is contained in:
2025-08-18 13:51:49 +02:00
parent 999180cd74
commit e6cc6ce2e8

View File

@@ -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){