From: Martin Mares Date: Fri, 9 Oct 2015 12:37:55 +0000 (+0200) Subject: nwhod: Fixed an initialization bug in make_pkt() X-Git-Tag: v1.14~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=576a54c538fac519253b3978ca555f0ff185ed63;p=nwho.git nwhod: Fixed an initialization bug in make_pkt() Thanks to GCC warnings :) --- diff --git a/nwhod.c b/nwhod.c index 878db6b..4e32ea6 100644 --- a/nwhod.c +++ b/nwhod.c @@ -136,7 +136,7 @@ scan_load(struct nwho_pkt *p) static void make_pkt(struct nwho_pkt *pkt) { - bzero(pkt, sizeof(pkt)); + bzero(pkt, sizeof(*pkt)); pkt->magic = htonl(NWHO_MAGIC); pkt->local_time = htonl(now); scan_utmp(pkt, now);