vsprintf() -> vsnprintf()

This commit is contained in:
kris 2000-11-26 08:14:55 +00:00
parent b78e6d6acc
commit 5d942789bc

View File

@ -274,7 +274,7 @@ void yyerror(char *fmt, ...)
char msg[128];
va_start(ap, fmt);
vsprintf(msg, fmt, ap);
vsnprintf(msg, sizeof(msg), fmt, ap);
va_end(ap);
errx(EX_UNAVAILABLE, "%s near line %d", msg, line_no);
}