From: reyk Date: Sat, 26 Jul 2014 09:59:14 +0000 (+0000) Subject: bzero is over, memset is cool. pointed out by halex@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fe9c457cd4bbe29cc2d792edbec8876e57f721f8;p=openbsd bzero is over, memset is cool. pointed out by halex@ --- 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;