From ab023dfaed6a18885a56fa7479c05cc723b20d42 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 11 Jan 2020 18:21:37 -0700 Subject: [PATCH] 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. --- cde/lib/DtSvc/DtUtil2/UErrNoBMS.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cde/lib/DtSvc/DtUtil2/UErrNoBMS.c b/cde/lib/DtSvc/DtUtil2/UErrNoBMS.c index 33ddb487..b81e3e53 100644 --- a/cde/lib/DtSvc/DtUtil2/UErrNoBMS.c +++ b/cde/lib/DtSvc/DtUtil2/UErrNoBMS.c @@ -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); -- 2.25.1