[mapserver-commits] r7178 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Dec 17 04:42:56 EST 2007


Author: unicoletti
Date: 2007-12-17 04:42:56 -0500 (Mon, 17 Dec 2007)
New Revision: 7178

Modified:
   trunk/mapserver/maperror.c
Log:
The fix is for #2350, but in fact it solves a more general issue with long strings sprintf\'ed into an error message whose max lenght is 2048

Modified: trunk/mapserver/maperror.c
===================================================================
--- trunk/mapserver/maperror.c	2007-12-17 09:38:24 UTC (rev 7177)
+++ trunk/mapserver/maperror.c	2007-12-17 09:42:56 UTC (rev 7178)
@@ -333,7 +333,7 @@
   else
   {
     va_start(args, routine);
-    vsprintf( ms_error->message, message_fmt, args );
+    vsnprintf( ms_error->message, MESSAGELENGTH, message_fmt, args );
     va_end(args);
   }
 



More information about the mapserver-commits mailing list