FRead() bug fixed on constant strings use

This commit is contained in:
Antonio Linares
2002-07-05 09:35:17 +00:00
parent 965db1de2b
commit b3e1419cf0

View File

@@ -92,6 +92,11 @@ HB_FUNC( FREAD )
if( ISNUM( 1 ) && ISCHAR( 2 ) && ISBYREF( 2 ) && ISNUM( 3 ) )
{
PHB_ITEM pItem = hb_stackItemFromBase( 2 );
if( pItem->item.asString.bStatic == TRUE )
hb_itemPutC( pItem, hb_parc( 2 ) );
ulRead = hb_parnl( 3 );
/* NOTE: CA-Clipper determines the maximum size by calling _parcsiz()
@@ -227,4 +232,4 @@ HB_FUNC( HB_F_EOF )
}
}
#endif
#endif