mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
apng_create_info_struct: Swap order of calloc params
Instead of making one apng_info sized struct, it was making apng_info's size many bytes. Which SHOULD be identical, but in the case of padding may not be. Certainly enough of a risk for the compiler to warn about it
This commit is contained in:
parent
1c7b26639a
commit
cbd7803e61
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ apng_create_info_struct (png_structp pngp)
|
||||||
{
|
{
|
||||||
apng_infop ainfop;
|
apng_infop ainfop;
|
||||||
(void)pngp;
|
(void)pngp;
|
||||||
if (( ainfop = calloc(sizeof (apng_info),1) ))
|
if (( ainfop = calloc(1, sizeof (apng_info)) ))
|
||||||
{
|
{
|
||||||
apng_set_write_fn(pngp, ainfop, 0, 0, 0, 0, 0);
|
apng_set_write_fn(pngp, ainfop, 0, 0, 0, 0, 0);
|
||||||
apng_set_set_acTL_fn(pngp, ainfop, 0);
|
apng_set_set_acTL_fn(pngp, ainfop, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue