From 283dd53b82434eb35fd92d7627923dbbdec1ed94 Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Sat, 19 Oct 2002 10:16:04 +0000 Subject: [PATCH] FRead() fix for dynamic strings use with more than one holder --- harbour/source/rtl/philes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/harbour/source/rtl/philes.c b/harbour/source/rtl/philes.c index 7cd7f25cb1..b822a1e2fc 100644 --- a/harbour/source/rtl/philes.c +++ b/harbour/source/rtl/philes.c @@ -96,7 +96,8 @@ HB_FUNC( FREAD ) { PHB_ITEM pItem = hb_itemUnRef( hb_stackItemFromBase( 2 ) ); - if( pItem->item.asString.bStatic == TRUE ) + if( pItem->item.asString.bStatic == TRUE || + ( * pItem->item.asString.puiHolders ) > 1 ) hb_itemPutC( pItem, hb_parc( 2 ) ); ulRead = hb_parnl( 3 );