Skip to content

Commit

Permalink
Fix a compiler warning
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6609 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Feb 17, 2007
1 parent 248644e commit 9c52ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/grid_maker/dbfopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static void *DBFReadAttribute(DBFHandle psDBF, int hEntity, int iField,
/* -------------------------------------------------------------------- */
/* Extract the requested field. */
/* -------------------------------------------------------------------- */
strncpy( pszStringField, pabyRec+psDBF->panFieldOffset[iField],
strncpy( pszStringField, (char*)(pabyRec+psDBF->panFieldOffset[iField]),
psDBF->panFieldSize[iField] );
pszStringField[psDBF->panFieldSize[iField]] = '\0';

Expand Down

0 comments on commit 9c52ef0

Please sign in to comment.