diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0431b879de..16aab00c88 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-10-13 16:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/compiler/hbmain.c + * do not set TAB after last dependencies list generated by -sm + switch + 2009-10-13 15:16 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbpp.h * harbour/include/hbcompdf.h diff --git a/harbour/src/compiler/hbmain.c b/harbour/src/compiler/hbmain.c index e9250df085..3c5161279e 100644 --- a/harbour/src/compiler/hbmain.c +++ b/harbour/src/compiler/hbmain.c @@ -3920,10 +3920,15 @@ static void hb_compGenIncluded( HB_COMP_DECL ) ulLen += ( ULONG ) strlen( pIncFile->szFileName ) + 1; pIncFile = pIncFile->pNext; } + u = HB_COMP_PARAM->ulOutBufSize; + if( u != 0 ) + ++ulLen; HB_COMP_PARAM->pOutBuf = ( BYTE * ) hb_xrealloc( - HB_COMP_PARAM->pOutBuf, HB_COMP_PARAM->ulOutBufSize + ulLen + 1 ); - buffer = HB_COMP_PARAM->pOutBuf + HB_COMP_PARAM->ulOutBufSize; - HB_COMP_PARAM->ulOutBufSize += ulLen; + HB_COMP_PARAM->pOutBuf, u + ulLen ); + buffer = HB_COMP_PARAM->pOutBuf + u; + if( u != 0 ) + *buffer++ = pIncFile ? ' ' : '\t'; + HB_COMP_PARAM->ulOutBufSize += ulLen - 1; pIncFile = HB_COMP_PARAM->incfiles; while( pIncFile ) { @@ -3931,9 +3936,8 @@ static void hb_compGenIncluded( HB_COMP_DECL ) memcpy( buffer, pIncFile->szFileName, u ); buffer +=u; pIncFile = pIncFile->pNext; - *buffer++ = pIncFile ? ' ' : '\t'; + *buffer++ = pIncFile ? ' ' : '\0'; } - *buffer = '\0'; } else {