artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2e335e
)
do not accidentally pass garbage module name to the kernel; found by Don.Lewis@tsc...
author
deraadt
<deraadt@openbsd.org>
Thu, 6 Feb 1997 13:02:43 +0000
(13:02 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 6 Feb 1997 13:02:43 +0000
(13:02 +0000)
usr.bin/modstat/modstat.c
patch
|
blob
|
history
diff --git
a/usr.bin/modstat/modstat.c
b/usr.bin/modstat/modstat.c
index
360dc0a
..
b8a6548
100644
(file)
--- 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 miller
t Exp $ */
+/* $OpenBSD: modstat.c,v 1.
8 1997/02/06 13:02:43 deraad
t 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;