summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-07 03:57:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-07 03:57:29 +0000
commit2e97e01a89d971a29eea7ca0beadda8eab18c29f (patch)
tree49379b65e47df9da2cefa355befbe99a16e9d484
parent44ac6be77fc2d03b26ebaf9249f1b94b17044366 (diff)
yuck, another bad sizeof(). again in code hacked on the Frankfurt->Montreal
flight. should we draw concludions from that? I'd like to blame the Air Canada seats...
-rw-r--r--usr.sbin/ntpd/ntp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index d9a66db084c..ec350e49ce3 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.13 2004/07/07 01:01:27 henning Exp $ */
+/* $OpenBSD: ntp.c,v 1.14 2004/07/07 03:57:28 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -149,7 +149,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *conf)
}
bzero(pfd, sizeof(struct pollfd) * pfd_elms);
- bzero(idx2peer, sizeof(struct ntp_peer) * idx2peer_elms);
+ bzero(idx2peer, sizeof(void *) * idx2peer_elms);
nextaction = next_adjtime;
pfd[PFD_PIPE_MAIN].fd = ibuf_main.fd;
pfd[PFD_PIPE_MAIN].events = POLLIN;