summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-06 13:02:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-06 13:02:44 +0000
commitd3bded9426513cb390446aa22bb43bdc0e9d8129 (patch)
tree10195c6d410921d5c4bdfe6a7c50147a199817a3 /usr.bin
parent4126da5bced0ebeb20f0bed1c3ff4679056d89b1 (diff)
do not accidentally pass garbage module name to the kernel; found by Don.Lewis@tsc.tdk.com
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/modstat/modstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/modstat/modstat.c b/usr.bin/modstat/modstat.c
index 360dc0a83ef..b8a6548a0b0 100644
--- a/usr.bin/modstat/modstat.c
+++ b/usr.bin/modstat/modstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modstat.c,v 1.7 1997/01/15 23:42:54 millert Exp $ */
+/* $OpenBSD: modstat.c,v 1.8 1997/02/06 13:02:43 deraadt Exp $ */
/*
* Copyright (c) 1993 Terrence R. Lambert.
@@ -74,6 +74,7 @@ dostat(devfd, modnum, modname)
struct lmc_stat sbuf;
char name[MAXLKMNAME] = "";
+ bzero(&sbuf, sizeof sbuf);
sbuf.id = modnum;
sbuf.name = name;