mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 19:52:20 +00:00
DtSvc: always use vsnprintf
There was code (_DtSimpleError() and _DtSimpleErrornoError()) that only used snprintf when USE_SNPRINTF was defined, which it never was of course. We just remove the 2 checks and always use [v]snprintf.
This commit is contained in:
parent
2f8a2ec066
commit
ab023dfaed
1 changed files with 0 additions and 8 deletions
|
@ -210,11 +210,7 @@ _DtSimpleError(
|
|||
if (NULL == message) return;
|
||||
|
||||
Va_start(args, format);
|
||||
#if defined(USE_SNPRINTF)
|
||||
(void) vsnprintf(message, MESSAGE_BUFFER, format, args);
|
||||
#else
|
||||
(void) vsprintf(message, format, args);
|
||||
#endif
|
||||
va_end(args);
|
||||
|
||||
log_message(progName, help, message, severity, FALSE);
|
||||
|
@ -235,11 +231,7 @@ _DtSimpleErrnoError(
|
|||
if (NULL == message) return;
|
||||
|
||||
Va_start(args, format);
|
||||
#if defined(USE_SNPRINTF)
|
||||
(void) vsnprintf(message, MESSAGE_BUFFER, format, args);
|
||||
#else
|
||||
(void) vsprintf(message, format, args);
|
||||
#endif
|
||||
va_end(args);
|
||||
|
||||
log_message(progName, help, message, severity, TRUE);
|
||||
|
|
Loading…
Reference in a new issue