Fix swapped calloc() arguments

This commit is contained in:
Cameron Gutman
2025-11-28 17:01:04 -06:00
parent 040e3896f1
commit 64b5a33668

View File

@@ -32,7 +32,7 @@ struct mapping* mapping_parse(char* mapping) {
if (guid == NULL || name == NULL) if (guid == NULL || name == NULL)
return NULL; return NULL;
struct mapping* map = calloc(sizeof(struct mapping), 1); struct mapping* map = calloc(1, sizeof(struct mapping));
if (map == NULL) { if (map == NULL) {
fprintf(stderr, "Not enough memory"); fprintf(stderr, "Not enough memory");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);