diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-11-30 06:22:43 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-11-30 06:22:43 +0000 |
commit | b4aeb2038ca9bacf1fc58d0b9c007058a5cb5bd8 (patch) | |
tree | f54b99dbbebd6007c4d808571ea5d6d1b5295b48 /usr.bin | |
parent | 832c0b4aa9d8319020f12c0ec3eff0f96e4adbf3 (diff) |
Fix a very old bug_t with memset
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/xlint/lint1/scan.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l index 7193bc4194d..355ca9959f0 100644 --- a/usr.bin/xlint/lint1/scan.l +++ b/usr.bin/xlint/lint1/scan.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: scan.l,v 1.13 2005/11/29 20:47:44 cloder Exp $ */ +/* $OpenBSD: scan.l,v 1.14 2005/11/30 06:22:42 cloder Exp $ */ /* $NetBSD: scan.l,v 1.8 1995/10/23 13:38:51 jpo Exp $ */ /* @@ -34,7 +34,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: scan.l,v 1.13 2005/11/29 20:47:44 cloder Exp $"; +static char rcsid[] = "$OpenBSD: scan.l,v 1.14 2005/11/30 06:22:42 cloder Exp $"; #endif #include <stdlib.h> @@ -313,7 +313,7 @@ allocsb() } else { sb = xmalloc(sizeof (sbuf_t)); } - (void)memset(sb, 0, sizeof (sb)); + (void)memset(sb, 0, sizeof (sbuf_t)); return (sb); } |