diff options
author | 1996-09-15 22:25:54 +0000 | |
---|---|---|
committer | 1996-09-15 22:25:54 +0000 | |
commit | 45c72c98602f59cee66f35b40cde794e091a5dc5 (patch) | |
tree | 895e2a0f498e87226b3ab54b9907bc0881e1d8a1 /bin/expr/expr.c | |
parent | fix a typo and vsprintf -> vsnprintf paranoia (diff) | |
download | wireguard-openbsd-45c72c98602f59cee66f35b40cde794e091a5dc5.tar.xz wireguard-openbsd-45c72c98602f59cee66f35b40cde794e091a5dc5.zip |
sprintf -> snprintf paranoia
Diffstat (limited to 'bin/expr/expr.c')
-rw-r--r-- | bin/expr/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/expr/expr.c b/bin/expr/expr.c index 14538ee5b87..49b1736ba8e 100644 --- a/bin/expr/expr.c +++ b/bin/expr/expr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expr.c,v 1.3 1996/06/23 14:20:10 deraadt Exp $ */ +/* $OpenBSD: expr.c,v 1.4 1996/09/15 22:27:38 millert Exp $ */ /* $NetBSD: expr.c,v 1.3.6.1 1996/06/04 20:41:47 cgd Exp $ */ /* @@ -157,7 +157,7 @@ to_string(vp) if (tmp == NULL) { err(2, NULL); } - sprintf(tmp, "%d", vp->u.i); + snprintf(tmp, 25, "%d", vp->u.i); vp->type = string; vp->u.s = tmp; } |