Swap calloc arguments to use them properly.

This commit is contained in:
Rose
2023-10-15 10:47:05 -04:00
committed by Todd C. Miller
parent dd8426f9cf
commit a4cbd7fe7b
3 changed files with 4 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ main(int argc, char *argv[])
/* Build up test data. */
ntests = 256 + 256 + 3;
test_data = calloc(sizeof(*test_data), (size_t)ntests);
test_data = calloc((size_t)ntests, sizeof(*test_data));
for (i = 0; i < 256; i++) {
/* lower case */
test_data[i].value = i;