From 5deaef89bf3eac65f0d9cd100cfe32db4cffbf0d Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Fri, 16 Nov 2001 08:46:09 +0000 Subject: [PATCH] 2001-11-16 08:44 GMT Dave Pearson * source/compiler/gencobj.c * Fixed core dump when using -o switch. --- harbour/ChangeLog | 4 ++++ harbour/source/compiler/gencobj.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 10bffaed26..b1aedd65bd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-11-16 08:44 GMT Dave Pearson + * source/compiler/gencobj.c + * Fixed core dump when using -o switch. + 2001-11-16 07:19 GMT Dave Pearson * contrib/libct/print.c * Marked uiPort as HB_SYMBOL_UNUSED for unsupported platforms in diff --git a/harbour/source/compiler/gencobj.c b/harbour/source/compiler/gencobj.c index 5bbcb88220..7f4390e73f 100644 --- a/harbour/source/compiler/gencobj.c +++ b/harbour/source/compiler/gencobj.c @@ -165,7 +165,7 @@ void hb_compGenCObj( PHB_FNAME pFileName ) if( hb_comp_pOutPath ) { PHB_FNAME pOut = hb_fsFNameSplit( ( char * ) szFileName ); - char * pszTemp = ""; + char pszTemp[ _POSIX_PATH_MAX ] = ""; if( hb_comp_pOutPath->szPath ) pOut->szPath = hb_comp_pOutPath->szPath;