From cbf80388df51025d65f04fb7b8feccdb7db09ff1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 13 Jul 2008 09:39:08 +0000 Subject: [PATCH] * fixed naming crash with the new libcitadel --- citadel/ecrash.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/citadel/ecrash.c b/citadel/ecrash.c index 292234926..6a8ef3a0c 100644 --- a/citadel/ecrash.c +++ b/citadel/ecrash.c @@ -45,7 +45,7 @@ static int gbl_backtraceDoneFlag = 0; static void *stack_frames[50]; static size_t size, NThread; static char **strings; -static char StrBuf[SIZ]; +static char StaticBuf[SIZ]; /* * Private structures for our thread list @@ -174,8 +174,8 @@ static void outputPrintf(char *format, ...) if (enable_syslog) { - snprintf (StrBuf, SIZ, format, ap); - syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf); + snprintf (StaticBuf, SIZ, format, ap); + syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf); } else CtdlLogPrintf(CTDL_EMERG, format, ap); @@ -198,8 +198,8 @@ static void createGlobalBacktrace( void ) if (enable_syslog) for (NThread = 0; NThread < size; NThread++) { - snprintf (StrBuf, SIZ, "RAW: %p ", stack_frames[NThread]); - syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf); + snprintf (StaticBuf, SIZ, "RAW: %p ", stack_frames[NThread]); + syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf); } else for (NThread = 0; NThread < size; NThread++) @@ -209,8 +209,8 @@ static void createGlobalBacktrace( void ) if (strings != NULL) { if (enable_syslog) {// vsyslogs printf compliance sucks. - snprintf (StrBuf, SIZ, "RAW: %p ", strings[NThread]); - syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf); + snprintf (StaticBuf, SIZ, "RAW: %p ", strings[NThread]); + syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf); } else CtdlLogPrintf(1, "%s\n", strings[NThread]); @@ -224,8 +224,8 @@ static void outputRawtrace( void ) if (enable_syslog) for (NThread = 0; NThread < size; NThread++) { - snprintf (StrBuf, SIZ, "RAW: %p ", stack_frames[NThread]); - syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf); + snprintf (StaticBuf, SIZ, "RAW: %p ", stack_frames[NThread]); + syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf); } else for (NThread = 0; NThread < size; NThread++) -- 2.30.2