summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/lib_strbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/lib_strbuf.h')
-rw-r--r--contrib/ntp/libntp/lib_strbuf.h3
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];
OpenPOWER on IntegriCloud