Skip to content

Commit

Permalink
Fix -Werror=calloc-transposed-args with gcc 14
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 10, 2024
1 parent 1f3e10b commit 05855d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgeotiff/geotiff_proj4.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static char **OSRProj4Tokenize( const char *pszFull )
if( pszFull == NULL )
return NULL;

char **papszTokens = (char **) calloc(sizeof(char*),nMaxTokens);
char **papszTokens = (char **) calloc(nMaxTokens, sizeof(char*));

char *pszFullWrk = CPLStrdup(pszFull);

Expand Down

0 comments on commit 05855d5

Please sign in to comment.