diff options
author | eivind <eivind@FreeBSD.org> | 1997-10-07 16:33:22 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1997-10-07 16:33:22 +0000 |
commit | de07534fa8f6497ed4c5c1eb00efad4d66e31b12 (patch) | |
tree | 33b03b192afeff54536fdead3d519e72293e926e | |
parent | 5e35aa322b9a127738721b3992c1f585050469d8 (diff) | |
download | FreeBSD-src-de07534fa8f6497ed4c5c1eb00efad4d66e31b12.zip FreeBSD-src-de07534fa8f6497ed4c5c1eb00efad4d66e31b12.tar.gz |
vsprintf -> vnsprintf paranoia.
Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD rev 1.3)
-rw-r--r-- | bin/csh/err.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/err.c b/bin/csh/err.c index d878847..8341ae7 100644 --- a/bin/csh/err.c +++ b/bin/csh/err.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 5/31/93"; #else static const char rcsid[] = - "$Id: err.c,v 1.4 1997/02/22 14:01:48 peter Exp $"; + "$Id: err.c,v 1.5 1997/08/07 21:42:06 steve Exp $"; #endif #endif /* not lint */ @@ -310,7 +310,7 @@ seterror(id, va_alist) #endif if (id < 0 || id > sizeof(errorlist) / sizeof(errorlist[0])) id = ERR_INVALID; - vsprintf(berr, errorlist[id], va); + vsnprintf(berr, sizeof(berr), errorlist[id], va); va_end(va); seterr = strsave(berr); |