diff --git a/ChangeLog.txt b/ChangeLog.txt index a96c0848fd..a5a99b5ebc 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,10 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2017-11-15 23:34 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rdd/dbf1.c + ! pacified warning after last commit - thanks to Grigory Filatov + 2017-11-15 14:34 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/hbwin/wapi_winbase_2.c * contrib/hbwin/wapi_winuser_2.c diff --git a/src/rdd/dbf1.c b/src/rdd/dbf1.c index 3d8e798117..82b06913ef 100644 --- a/src/rdd/dbf1.c +++ b/src/rdd/dbf1.c @@ -2177,7 +2177,7 @@ static HB_ERRCODE hb_dbfGetValue( DBFAREAP pArea, HB_USHORT uiIndex, PHB_ITEM pI { nLen = HB_GET_LE_UINT16( &pArea->pRecord[ pArea->pFieldOffset[ uiIndex ] + ( nLen << 1 ) ] ); if( nLen == 0xFFFF || - nLen > pField->uiLen ) /* protection against corrupted files */ + nLen > ( HB_SIZE ) pField->uiLen ) /* protection against corrupted files */ nLen = 0; hb_itemPutStrLenU16( pItem, HB_CDP_ENDIAN_LITTLE, ( const HB_WCHAR * ) &pArea->pRecord[ pArea->pFieldOffset[ uiIndex ] ],