summaryrefslogtreecommitdiffstats
path: root/sbin/modload
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/modload')
-rw-r--r--sbin/modload/modload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c
index 9f37f9c..a9cf18f 100644
--- a/sbin/modload/modload.c
+++ b/sbin/modload/modload.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: modload.c,v 1.10 1995/10/28 17:06:05 peter Exp $
+ * $Id: modload.c,v 1.11 1996/04/26 18:39:48 erich Exp $
*/
#include <stdio.h>
@@ -235,7 +235,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
OpenPOWER on IntegriCloud