diff options
Diffstat (limited to 'usr.bin/colldef')
-rw-r--r-- | usr.bin/colldef/parse.y | 2 |
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); } |