mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 03:25:45 +01:00
fix: swapped calloc arguments
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user