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:
@@ -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 ] ],
|
||||
|
||||
Reference in New Issue
Block a user