[mapserver-commits] r13248 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Mar 14 07:38:53 EDT 2012
Author: tbonfort
Date: 2012-03-14 04:38:52 -0700 (Wed, 14 Mar 2012)
New Revision: 13248
Modified:
trunk/mapserver/mapgd.c
Log:
add note about gd string advances
Modified: trunk/mapserver/mapgd.c
===================================================================
--- trunk/mapserver/mapgd.c 2012-03-14 11:32:42 UTC (rev 13247)
+++ trunk/mapserver/mapgd.c 2012-03-14 11:38:52 UTC (rev 13248)
@@ -853,6 +853,7 @@
MS_CHECK_ALLOC(*advances, strlen(string) * sizeof(double), MS_FAILURE);
s = strex.xshow;
k = 0;
+ /* TODO this smells buggy and can cause errors at a higher level. strlen NOK here*/
while ( *s && k < strlen(string) ) {
(*advances)[k++] = atof(s);
while ( *s && *s != ' ')
More information about the mapserver-commits
mailing list