[mapserver-commits] r9735 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Fri Jan 22 20:47:27 EST 2010
Author: pramsey
Date: 2010-01-22 20:47:27 -0500 (Fri, 22 Jan 2010)
New Revision: 9735
Modified:
trunk/mapserver/mapows.c
Log:
Replace unsafe sprintf with strncpy.
Modified: trunk/mapserver/mapows.c
===================================================================
--- trunk/mapserver/mapows.c 2010-01-22 19:01:57 UTC (rev 9734)
+++ trunk/mapserver/mapows.c 2010-01-23 01:47:27 UTC (rev 9735)
@@ -1665,9 +1665,9 @@
else if( strcasecmp(tokens[i],"imageCRS") == 0 )
sprintf( urn, "urn:ogc:def:crs:OGC::imageCRS" );
else if( strncmp(tokens[i],"urn:ogc:def:crs:",16) == 0 )
- sprintf( urn, tokens[i] );
+ strncpy( urn, tokens[i], 100 );
else
- strcpy( urn, "" );
+ strncpy( urn, "", 100 );
if( strlen(urn) > 0 )
{
More information about the mapserver-commits
mailing list