Commit ce42e187 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

rts: Fix erroneous usage of vsnprintf

As pointed out in #18685, this should be snprintf not vsnprintf. This
appears to be due to a cut-and-paste error.

Fixes #18658.
parent 90229c4b
Pipeline #24734 failed with stages
in 302 minutes and 33 seconds
......@@ -248,7 +248,7 @@ rtsSysErrorMsgFn(const char *s, va_list ap)
r = vsnprintf(buf, BUFSIZE, s, ap);
if (r > 0 && r < BUFSIZE) {
r = vsnprintf(buf+r, BUFSIZE-r, ": %s", syserr);
r = snprintf(buf+r, BUFSIZE-r, ": %s", syserr);
MessageBox(NULL /* hWnd */,
buf,
prog_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment