Fix memset usage.
This commit is contained in:
parent
cfdb8ebbda
commit
b341a73a57
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: addbytes.c,v 1.38 2010/12/16 17:42:28 wiz Exp $ */
|
||||
/* $NetBSD: addbytes.c,v 1.39 2011/07/01 01:19:33 joerg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993, 1994
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: addbytes.c,v 1.38 2010/12/16 17:42:28 wiz Exp $");
|
||||
__RCSID("$NetBSD: addbytes.c,v 1.39 2011/07/01 01:19:33 joerg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -157,7 +157,7 @@ __waddbytes(WINDOW *win, const char *bytes, int count, attr_t attr)
|
|||
/* not a valid conversion just eat a char */
|
||||
wc = *bytes;
|
||||
n = 1;
|
||||
(void)memset(&st, 0, sizeof(&st));
|
||||
(void)memset(&st, 0, sizeof(st));
|
||||
} else if (wc == 0) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue