From a6d970c97dbf12b5536009f137a0c433aaec1f02 Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:36:21 -0800 Subject: [PATCH] Update unpk.c --- wgrib2/unpk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgrib2/unpk.c b/wgrib2/unpk.c index bf140b8..5be23a7 100644 --- a/wgrib2/unpk.c +++ b/wgrib2/unpk.c @@ -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);