summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-26 08:14:55 +0000
committerkris <kris@FreeBSD.org>2000-11-26 08:14:55 +0000
commit5d942789bc55036cd4482f8e510e743480410afc (patch)
treeddb464a1fd8566a67f721129edd0312509a3fc83 /usr.bin
parentb78e6d6acc194d1a57d8cc09187c133f8ab4ef17 (diff)
downloadFreeBSD-src-5d942789bc55036cd4482f8e510e743480410afc.zip
FreeBSD-src-5d942789bc55036cd4482f8e510e743480410afc.tar.gz
vsprintf() -> vsnprintf()
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/colldef/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/colldef/parse.y b/usr.bin/colldef/parse.y
index c4beb8b..5621a21 100644
--- a/usr.bin/colldef/parse.y
+++ b/usr.bin/colldef/parse.y
@@ -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);
}
OpenPOWER on IntegriCloud