vsprintf -> vsnprintf in msg().
This commit is contained in:
parent
33dbb0a630
commit
a7d7b470ae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53084
@ -328,7 +328,7 @@ msg(fmt, va_alist)
|
|||||||
(void) vfprintf(stderr, fmt, ap);
|
(void) vfprintf(stderr, fmt, ap);
|
||||||
(void) fflush(stdout);
|
(void) fflush(stdout);
|
||||||
(void) fflush(stderr);
|
(void) fflush(stderr);
|
||||||
(void) vsprintf(lastmsg, fmt, ap);
|
(void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user