Skip to content

Commit 9c52ef0

Browse files
author
g_j_m
committedFeb 17, 2007
Fix a compiler warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@6609 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 248644e commit 9c52ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/plugins/grid_maker/dbfopen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ static void *DBFReadAttribute(DBFHandle psDBF, int hEntity, int iField,
631631
/* -------------------------------------------------------------------- */
632632
/* Extract the requested field. */
633633
/* -------------------------------------------------------------------- */
634-
strncpy( pszStringField, pabyRec+psDBF->panFieldOffset[iField],
634+
strncpy( pszStringField, (char*)(pabyRec+psDBF->panFieldOffset[iField]),
635635
psDBF->panFieldSize[iField] );
636636
pszStringField[psDBF->panFieldSize[iField]] = '\0';
637637

0 commit comments

Comments
 (0)
Please sign in to comment.