Skip to content

Commit

Permalink
Fix r27451: DBFGetFieldInfo() needs 12 bytes as it may fill up to 11 …
Browse files Browse the repository at this point in the history
…usefull bytes + the terminating 0 (#5515)

git-svn-id: https://svn.osgeo.org/gdal/trunk@27453 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
rouault committed Jun 12, 2014
1 parent 02165aa commit c0410a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdal/ogr/ogrsf_frmts/shape/shape2ogr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0410a0

Please sign in to comment.