[mapserver-commits] r9596 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Dec 7 18:24:39 EST 2009
Author: assefa
Date: 2009-12-07 18:24:39 -0500 (Mon, 07 Dec 2009)
New Revision: 9596
Modified:
trunk/mapserver/mapogcsld.c
Log:
correct build warning
Modified: trunk/mapserver/mapogcsld.c
===================================================================
--- trunk/mapserver/mapogcsld.c 2009-12-07 23:20:37 UTC (rev 9595)
+++ trunk/mapserver/mapogcsld.c 2009-12-07 23:24:39 UTC (rev 9596)
@@ -5161,7 +5161,7 @@
if (pszFinalAttributeValue[0] == '/' && pszFinalAttributeValue[strlen(pszFinalAttributeValue)-1] == '/')
{
pszFinalAttributeValue[strlen(pszFinalAttributeValue)-1] = '\0';
- pszFinalAttributeValue = pszFinalAttributeValue++;
+ pszFinalAttributeValue = pszFinalAttributeValue+1;
if (pszFinalAttributeValue[0] == '^')
pszFinalAttributeValue++;
@@ -5629,8 +5629,8 @@
{
if (i > 0 && i < nElements-1)
{
- sprintf(szAttribute, aszElements[i-1]);
- sprintf(szValue, aszElements[i+1]);
+ sprintf(szAttribute, "%s", aszElements[i-1]);
+ sprintf(szValue, "%s", aszElements[i+1]);
/* parse attribute */
nLength = strlen(szAttribute);
@@ -5664,7 +5664,7 @@
else if (szValue[0] == '\"')
bDoublequote = 1;
else
- sprintf(szFinalValue,szValue);
+ sprintf(szFinalValue,"%s", szValue);
iVal = 0;
if (bSinglequote || bDoublequote)
More information about the mapserver-commits
mailing list