From 5529cf15dfd9a289ffd3257ae0cb4464d3132b3a Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Sun, 27 Jan 2002 09:26:23 +0000 Subject: [PATCH] Compiler expressions optimizer modified to return a final zero for pcode strings --- harbour/include/hbexprb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harbour/include/hbexprb.c b/harbour/include/hbexprb.c index 85e3929cf8..4d650deb82 100644 --- a/harbour/include/hbexprb.c +++ b/harbour/include/hbexprb.c @@ -337,7 +337,7 @@ static HB_EXPR_FUNC( hb_compExprUseString ) break; case HB_EA_PUSH_PCODE: { - HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asString.string, pSelf->ulLength ); + HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asString.string, pSelf->ulLength + 1 ); if( hb_compExprCheckMacroVar( pSelf->value.asString.string ) ) HB_EXPR_GENPCODE1( hb_compGenPCode1, HB_P_MACROTEXT ); }