Permalink
Browse files

Small fix to shpxy in templates

  • Loading branch information...
1 parent 72a9a19 commit d4df7b059b9f02e09ee5c68f527eb339664da8b4 @jlarouche jlarouche committed with tbonfort May 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 maptemplate.c
View
@@ -2058,7 +2058,7 @@ static int processShpxyTag(layerObj *layer, char **line, shapeObj *shape)
}
/* build the per point format strings (version 1 contains the coordinate seperator, version 2 doesn't) */
- pointFormatLength = strlen("xh") + strlen("xf") + strlen("yh") + strlen("yf") + strlen("cs") + 10 + 1;
+ pointFormatLength = strlen(xh) + strlen(xf) + strlen(yh) + strlen(yf) + strlen(cs) + 12 + 1;
pointFormat1 = (char *) msSmallMalloc(pointFormatLength);
snprintf(pointFormat1, pointFormatLength, "%s%%.%dlf%s%s%%.%dlf%s%s", xh, precision, xf, yh, precision, yf, cs);
pointFormat2 = (char *) msSmallMalloc(pointFormatLength);

0 comments on commit d4df7b0

Please sign in to comment.