From 1d83df2307c130da053313ce60960022fd6fd67f Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Wed, 30 Jan 2002 15:23:40 +0000 Subject: [PATCH] macros using "." bug fixed --- harbour/include/hbexprb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/harbour/include/hbexprb.c b/harbour/include/hbexprb.c index 4d650deb82..2a8a14a344 100644 --- a/harbour/include/hbexprb.c +++ b/harbour/include/hbexprb.c @@ -1081,7 +1081,7 @@ static HB_EXPR_FUNC( hb_compExprUseMacro ) * all components should be placed as a string that will * be compiled after text susbstitution */ - HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) ); + HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) + 1 ); } } /* compile & run - leave a result on the eval stack @@ -1187,7 +1187,7 @@ static HB_EXPR_FUNC( hb_compExprUseMacro ) * all components should be placed as a string that will * be compiled after text susbstitution */ - HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) ); + HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) + 1 ); } } /* compile & run - macro compiler will generate pcode to pop a value @@ -3465,4 +3465,4 @@ static HB_EXPR_FUNC( hb_compExprUsePreDec ) break; } return pSelf; -} +} \ No newline at end of file