Reacted on compiler warnings of Debian 13 Sid about calloc argument swap

This commit is contained in:
2025-09-14 10:53:35 +02:00
parent bb0b7f62e5
commit 879bcc8acd
4 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
Copyright 2007-2024 Thomas Schmitt, <scdbackup@gmx.net>
Copyright 2007-2025 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
@@ -354,7 +354,7 @@ int Xorriso_sorted_node_array(struct XorrisO *xorriso,
if(ret<=0)
return(ret);
*node_array= calloc(sizeof(IsoNode *), (*nodec)+1);
*node_array= calloc((*nodec) + 1, sizeof(IsoNode *));
if(*node_array==NULL) {
sprintf(xorriso->info_text,
"Cannot allocate memory for %d directory entries", *nodec);