diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-13 17:56:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-13 17:56:07 +0000 |
commit | e7a4a5fb9b82442bdcbf26b29704cc46caea9da4 (patch) | |
tree | 206174261c45e9c52550e9d43c2f5897412c82aa /sbin/modload/modload.c | |
parent | 741f6ee9ce77e79478de798dca7aa521d6e1a03b (diff) |
buf oflow, from pst@freebsd.org
Diffstat (limited to 'sbin/modload/modload.c')
-rw-r--r-- | sbin/modload/modload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index 38e54783214..0337fbd1f40 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modload.c,v 1.6 1996/08/05 11:01:17 mickey Exp $ */ +/* $OpenBSD: modload.c,v 1.7 1996/08/13 17:56:06 deraadt Exp $ */ /* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */ /* @@ -227,7 +227,7 @@ main(argc, argv) p++; /* skip over '/' */ else p = modobj; - sprintf(modout, "%s%sut", _PATH_TMP, p); + snprintf(modout, sizeof modout, "%s%sut", _PATH_TMP, p); out = modout; /* * reverse meaning of -u - if we've generated a /tmp |