Skip to content

Commit f832389

Browse files
committed
while at it, fix build warning "wrong" calloc arguments order
1 parent fd019ea commit f832389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/libgd/gd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3191,7 +3191,7 @@ int gdImagePaletteToTrueColor(gdImagePtr src)
31913191
// due to a bug with a certain memory_limit INI value treshold,
31923192
// imagepalettetotruecolor crashes with even unrelated ZendMM allocations.
31933193
// See GH-17772 for an use case.
3194-
src->tpixels = (int **) gdCalloc(sizeof(int *), sy);
3194+
src->tpixels = (int **) gdCalloc(sy, sizeof(int *));
31953195
if (src->tpixels == NULL) {
31963196
return 0;
31973197
}

0 commit comments

Comments
 (0)