Skip to content

Commit 935da72

Browse files
committed
CONNECTIONTYPE WFS: support very long typenames (fixes #5958)
1 parent ba27152 commit 935da72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapwfslayer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static char *msBuildWFSLayerPostRequest(mapObj *map, layerObj *lp,
256256
"</ogc:Filter>", pszGeometryName, bbox->minx, bbox->miny, bbox->maxx, bbox->maxy);
257257
}
258258

259-
bufferSize = strlen(pszFilter)+500;
259+
bufferSize = strlen(pszFilter)+strlen(psParams->pszTypeName)+500;
260260
pszPostReq = (char *)msSmallMalloc(bufferSize);
261261
if (psParams->nMaxFeatures > 0)
262262
snprintf(pszPostReq, bufferSize, "<?xml version=\"1.0\" ?>\n"

0 commit comments

Comments
 (0)