Permalink
Browse files

Fixed SEGFAULT in contour layer initialization

  • Loading branch information...
1 parent 458d224 commit 906c8eea5221988152f8c5d7d36388393d23151f Alan Boudreault committed Sep 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapcontour.c
View
@@ -108,7 +108,7 @@ static void msContourLayerInfoInitialize(layerObj *layer)
clinfo->ogrLayer.debug = layer->debug;
clinfo->ogrLayer.connectiontype = MS_OGR;
clinfo->ogrLayer.name = msStrdup(layer->name);
- clinfo->ogrLayer.connection = (char*)msSmallMalloc(strlen(layer->name)+13);
+ clinfo->ogrLayer.connection = (char*)msSmallMalloc(strlen(clinfo->ogrLayer.name)+13);
sprintf(clinfo->ogrLayer.connection, "__%s_CONTOUR__", layer->name);
clinfo->ogrLayer.units = layer->units;
}

0 comments on commit 906c8ee

Please sign in to comment.