Skip to content

Commit 5db2a0c

Browse files
authored
Swap calloc(3) argument order to match parameter names
1 parent a09bd6a commit 5db2a0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

API

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ follows.
8888
unsigned total = sel_copyTypes_np("alloc", types, total);
8989
if (total > 16)
9090
{
91-
types = calloc(sizeof(char*), total);
91+
types = calloc(total, sizeof(char*));
9292
sel_copyTypes_np("alloc", types, total);
9393
}
9494
// Do stuff with the types.

0 commit comments

Comments
 (0)