Skip to content

Commit

Permalink
Minor printf formatter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Mar 21, 2021
1 parent 3aab436 commit f244c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpolation.c
Expand Up @@ -229,7 +229,7 @@ int msInterpolationDataset(mapObj *map, imageObj *image, layerObj *interpolation
double adfGeoTransform[6];
memset(pointer, 0, sizeof(pointer));
CPLPrintPointer(pointer, iValues, sizeof(pointer));
snprintf(ds_string,1024,"MEM:::DATAPOINTER=%s,PIXELS=%u,LINES=%u,BANDS=1,DATATYPE=Byte,PIXELOFFSET=1,LINEOFFSET=%u",
snprintf(ds_string,1024,"MEM:::DATAPOINTER=%s,PIXELS=%d,LINES=%d,BANDS=1,DATATYPE=Byte,PIXELOFFSET=1,LINEOFFSET=%d",
pointer,image->width,image->height,image->width);
hDS = GDALOpenShared( ds_string, GA_ReadOnly );
if(hDS == NULL) {
Expand Down

0 comments on commit f244c89

Please sign in to comment.