diff options
author | 2016-11-07 22:18:22 +0000 | |
---|---|---|
committer | 2016-11-07 22:18:22 +0000 | |
commit | afa1af3bb8c6f09b526d0062b19aa662f75f06fb (patch) | |
tree | 8c7e4e301dea027e8f14da64be5a920aa7cec390 | |
parent | Use __{BEGIN,END}_HIDDEN_DECLS to avoid exporting the internal symbols (diff) | |
download | wireguard-openbsd-afa1af3bb8c6f09b526d0062b19aa662f75f06fb.tar.xz wireguard-openbsd-afa1af3bb8c6f09b526d0062b19aa662f75f06fb.zip |
Replace bzero(3) with memset(3)
OK deraadt@
-rw-r--r-- | libexec/spamd/spamd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index b205d3c87f0..6e16c1bd36f 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.144 2016/09/06 11:06:40 henning Exp $ */ +/* $OpenBSD: spamd.c,v 1.145 2016/11/07 22:18:22 mestre Exp $ */ /* * Copyright (c) 2015 Henning Brauer <henning@openbsd.org> @@ -1306,7 +1306,7 @@ main(int argc, char *argv[]) greyexp *= (60 * 60); break; case 'h': - bzero(&hostname, sizeof(hostname)); + memset(&hostname, 0, sizeof(hostname)); if (strlcpy(hostname, optarg, sizeof(hostname)) >= sizeof(hostname)) errx(1, "-h arg too long"); |