Skip to content

Commit

Permalink
fix(plugins): Only use mp_printf in ua_log_syslog.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Nov 9, 2024
1 parent 483b5e2 commit 89b2892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ua_log_syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 89b2892

Please sign in to comment.