Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Oct 31, 2024
1 parent 1cf0ce7 commit a501efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/decenc_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ g2c_dec_png(unsigned char *pngbuf, int width, int height,
{
g2int width8 = width, height8 = height;

return dec_png(pngbuf, width8, height8, cout);
return dec_png(pngbuf, &width8, &height8, cout);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/tst_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ main()
}

/* Now decode it. */
if ((ret = g2c_dec_png((unsigned char *)pngbuf, &width_in, &height_in, cout)))
if ((ret = g2c_dec_png((unsigned char *)pngbuf, width_in, height_in, cout)))
{
printf("%d\n", ret);
return G2C_ERROR;
Expand Down

0 comments on commit a501efd

Please sign in to comment.