From f0ed7b1f525d21c88da75575c8899a6c013743a0 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 17 Dec 2013 16:10:43 +0000 Subject: replace with memset --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index d1dad55..0150729 100644 --- a/menu.c +++ b/menu.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.69 2013/12/13 22:39:13 okan Exp $ + * $OpenBSD: menu.c,v 1.70 2013/12/17 16:10:43 okan Exp $ */ #include @@ -92,7 +92,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, TAILQ_INIT(&resultq); - bzero(&mc, sizeof(mc)); + (void)memset(&mc, 0, sizeof(mc)); xu_ptr_getpos(sc->rootwin, &mc.x, &mc.y); -- cgit v1.2.3-2-gb3c3