diff options
author | roberto <roberto@FreeBSD.org> | 2008-08-22 15:58:00 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2008-08-22 15:58:00 +0000 |
commit | b85c7169a740b2edf0106ad59fdaa1b0160f823c (patch) | |
tree | 2b9fb7f64eacb322e95695e412c923e97ba33e88 /contrib/ntp/libntp/lib_strbuf.h | |
parent | 1d197cfe9feac6bc29537d8e53c30b6435937b95 (diff) | |
parent | 7a6072eb585696f8856cd498c3fd194cf49f14c6 (diff) | |
download | FreeBSD-src-b85c7169a740b2edf0106ad59fdaa1b0160f823c.zip FreeBSD-src-b85c7169a740b2edf0106ad59fdaa1b0160f823c.tar.gz |
Merge ntpd & friends 4.2.4p5 from vendor/ntp/dist into head. Next commit
will update usr.sbin/ntp to match this.
MFC after: 2 weeks
Diffstat (limited to 'contrib/ntp/libntp/lib_strbuf.h')
-rw-r--r-- | contrib/ntp/libntp/lib_strbuf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ntp/libntp/lib_strbuf.h b/contrib/ntp/libntp/lib_strbuf.h index 1a34034..5aa0eb0 100644 --- a/contrib/ntp/libntp/lib_strbuf.h +++ b/contrib/ntp/libntp/lib_strbuf.h @@ -7,7 +7,7 @@ /* * Sizes of things */ -#define LIB_NUMBUFS 20 +#define LIB_NUMBUFS 200 #define LIB_BUFLENGTH 80 /* @@ -20,6 +20,7 @@ buf = &lib_stringbuf[lib_nextbuf][0]; \ if (++lib_nextbuf >= LIB_NUMBUFS) \ lib_nextbuf = 0; \ + memset(buf, 0, LIB_BUFLENGTH); \ } while (0) extern char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH]; |