vsprintf -> vsnprintf in msg().
This commit is contained in:
parent
33dbb0a630
commit
a7d7b470ae
@ -328,7 +328,7 @@ msg(fmt, va_alist)
|
||||
(void) vfprintf(stderr, fmt, ap);
|
||||
(void) fflush(stdout);
|
||||
(void) fflush(stderr);
|
||||
(void) vsprintf(lastmsg, fmt, ap);
|
||||
(void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user