Permalink
Browse files

Fix r27451: DBFGetFieldInfo() needs 12 bytes as it may fill up to 11 …

…usefull bytes + the terminating 0 (#5515)

git-svn-id: https://svn.osgeo.org/gdal/trunk@27453 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information...
1 parent 02165aa commit c0410a07c8b23e65071789a484fca0f3391fe0ff @rouault rouault committed Jun 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 gdal/ogr/ogrsf_frmts/shape/shape2ogr.cpp
View
2 gdal/ogr/ogrsf_frmts/shape/shape2ogr.cpp
@@ -885,7 +885,7 @@ OGRFeatureDefn *SHPReadOGRFeatureDefn( const char * pszName,
hDBF != NULL && iField < DBFGetFieldCount( hDBF );
iField++ )
{
- char szFieldName[11] = {};
+ char szFieldName[12] = {};
int nWidth, nPrecision;
DBFFieldType eDBFType;
OGRFieldDefn oField("", OFTInteger);

0 comments on commit c0410a0

Please sign in to comment.