[postgis-tickets] r15638 - #3828, change strnicmp to strncasecmp for a more "modern" standard call
Paul Ramsey
pramsey at cleverelephant.ca
Wed Sep 6 09:29:49 PDT 2017
Author: pramsey
Date: 2017-09-06 09:29:48 -0700 (Wed, 06 Sep 2017)
New Revision: 15638
Modified:
trunk/raster/rt_core/rt_raster.c
Log:
#3828, change strnicmp to strncasecmp for a more "modern" standard call
Modified: trunk/raster/rt_core/rt_raster.c
===================================================================
--- trunk/raster/rt_core/rt_raster.c 2017-09-06 16:20:19 UTC (rev 15637)
+++ trunk/raster/rt_core/rt_raster.c 2017-09-06 16:29:48 UTC (rev 15638)
@@ -1963,7 +1963,7 @@
RASTER_DEBUGF(4, "rt_raster_to_gdal_mem: szDatapointer is %p",
pszDataPointer);
- if (strnicmp(pszDataPointer, "0x", 2) == 0)
+ if (strncasecmp(pszDataPointer, "0x", 2) == 0)
sprintf(szGDALOption, "DATAPOINTER=%s", pszDataPointer);
else
sprintf(szGDALOption, "DATAPOINTER=0x%s", pszDataPointer);
More information about the postgis-tickets
mailing list