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
This commit is contained in:
Przemysław Czerpak
2017-11-15 23:34:17 +01:00
parent 134ef37309
commit dc0403d7dc
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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 ] ],