Skip to content

Commit

Permalink
Update unpk.c
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Nov 19, 2024
1 parent 05acd0d commit a6d970c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgrib2/unpk.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ int unpk_grib(unsigned char **sec, float *data) {
if ((c = (unsigned char *) malloc(4*sizeof(char) * (size_t) ndata)) == NULL)
fatal_error("unpk: png decode allocation error", "");

i = g2c_dec_png(sec[7]+5, (int *)width, (int *)height, (unsigned char *) c);
i = g2c_dec_png(sec[7]+5, &width, &height, (unsigned char *) c);
//i = dec_png(sec[7]+5, &width, &height, (unsigned char *) c);
//i = (int) dec_png_clone(sec[7]+5, &width, &height, (unsigned char *) c, &nbits, ndata);
if (i) fatal_error_i("unpk: png decode error %d",i);
Expand Down

0 comments on commit a6d970c

Please sign in to comment.