From: Matthias Andree Date: Sat, 11 Jan 2003 01:45:54 +0000 (+0100) Subject: Fix NULL -> '\0'. X-Git-Tag: NTP_4_1_73~3^2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e7b209fd2e2689c083b851b91ea74112d25df1e;p=thirdparty%2Fntp.git Fix NULL -> '\0'. bk: 3e1f7752UR59aAFMV-IkWlZfuxxrBA --- diff --git a/ntpd/refclock_palisade.c b/ntpd/refclock_palisade.c index c7b078adb4..d45f64c224 100644 --- a/ntpd/refclock_palisade.c +++ b/ntpd/refclock_palisade.c @@ -669,7 +669,7 @@ praecis_parse(struct recvbuf *rbufp, struct peer *peer) p += rbufp->recv_length; if(buf[p-2] == '\r' && buf[p-1] == '\n') { - buf[p-2] = NULL; + buf[p-2] = '\0'; record_clock_stats(&peer->srcadr, buf); p = 0;