From e7a4a5fb9b82442bdcbf26b29704cc46caea9da4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 13 Aug 1996 17:56:07 +0000 Subject: buf oflow, from pst@freebsd.org --- sbin/modload/modload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/modload/modload.c') 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 -- cgit v1.2.3