GRIB-383: grib_get reports negative length for grib message

This commit is contained in:
Shahram Najm 2013-06-11 13:10:02 +01:00
parent 6a6148fbfa
commit 5ff5f1b28b
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ void grib_print_key_values(grib_runtime_options* options,grib_handle* h) {
break;
case GRIB_TYPE_LONG:
ret=grib_get_long( h,options->print_keys[i].name,&lvalue);
sprintf(value,"%d",(int)lvalue);
sprintf(value,"%ld", lvalue);
break;
default:
fprintf(dump_file,"invalid format option for %s\n",options->print_keys[i].name);