vsprintf -> vsnprintf in msg().

This commit is contained in:
Warner Losh 1999-11-10 18:11:16 +00:00
parent 33dbb0a630
commit a7d7b470ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53084

View File

@ -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);
}