mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
md5: Consistently use item count as the first argument to calloc
Reported by: GCC 14 -Wcalloc-transposed-args Reviewed by: rlibby Differential Revision: https://reviews.freebsd.org/D46009 (cherry picked from commit e8e2ab3c55228d66388a0b33de8c5ac4b3d6dbe9)
This commit is contained in:
parent
d480a358cf
commit
0c293d0425
1 changed files with 1 additions and 1 deletions
|
|
@ -593,7 +593,7 @@ main(int argc, char *argv[])
|
|||
while (argc--)
|
||||
gnu_check(*argv++);
|
||||
argc = 0;
|
||||
argv = calloc(sizeof(char *), numrecs + 1);
|
||||
argv = calloc(numrecs + 1, sizeof(char *));
|
||||
for (rec = head; rec != NULL; rec = rec->next) {
|
||||
argv[argc] = rec->filename;
|
||||
argc++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue