From 89b2892099964202c741013777ee40e9f68016f2 Mon Sep 17 00:00:00 2001 From: Julius Pfrommer Date: Sat, 9 Nov 2024 20:36:08 +0100 Subject: [PATCH] fix(plugins): Only use mp_printf in ua_log_syslog.c --- plugins/ua_log_syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ua_log_syslog.c b/plugins/ua_log_syslog.c index 7f6efcb5e56..2fb9f3127a1 100644 --- a/plugins/ua_log_syslog.c +++ b/plugins/ua_log_syslog.c @@ -64,7 +64,7 @@ UA_Log_Syslog_log(void *context, UA_LogLevel level, UA_LogCategory category, syslog(LOG_WARNING, "Log message too long for syslog"); return; } - pos = vsnprintf(&logbuf[pos], LOGBUFSIZE - (size_t)pos, msg, args); + pos = mp_vsnprintf(&logbuf[pos], LOGBUFSIZE - (size_t)pos, msg, args); if(pos < 0) { syslog(LOG_WARNING, "Log message too long for syslog"); return;