From fe9c457cd4bbe29cc2d792edbec8876e57f721f8 Mon Sep 17 00:00:00 2001 From: reyk Date: Sat, 26 Jul 2014 09:59:14 +0000 Subject: [PATCH] bzero is over, memset is cool. pointed out by halex@ --- usr.sbin/httpd/httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/httpd/httpd.c b/usr.sbin/httpd/httpd.c index 454814d6470..520ae5e7797 100644 --- a/usr.sbin/httpd/httpd.c +++ b/usr.sbin/httpd/httpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: httpd.c,v 1.9 2014/07/25 21:29:58 reyk Exp $ */ +/* $OpenBSD: httpd.c,v 1.10 2014/07/26 09:59:14 reyk Exp $ */ /* * Copyright (c) 2014 Reyk Floeter @@ -654,7 +654,7 @@ prefixlen2mask6(u_int8_t prefixlen, u_int32_t *mask) if (prefixlen > 128) prefixlen = 128; - bzero(&s6, sizeof(s6)); + memset(&s6, 0, sizeof(s6)); for (i = 0; i < prefixlen / 8; i++) s6.s6_addr[i] = 0xff; i = prefixlen % 8; -- 2.20.1