From b6bc1ac776e9473efd60cc1d7cb5cabaeb3ecb46 Mon Sep 17 00:00:00 2001 From: Juergen Perlinger Date: Thu, 7 Sep 2017 15:44:14 +0200 Subject: [PATCH] [Bug 3430] ntpq dumps core (SIGSEGV) for "keytype md2" - side kick: missing linefeed in 'ifstat' warning messes up screen bk: 59b14d2e-xIkyfGpKuShlhkO8hDsSw --- ntpq/ntpq-subs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntpq/ntpq-subs.c b/ntpq/ntpq-subs.c index 08f9d426a..de8062cd9 100644 --- a/ntpq/ntpq-subs.c +++ b/ntpq/ntpq-subs.c @@ -3277,7 +3277,7 @@ validate_ifnum( return; if (prow->ifnum + 1 <= ifnum) { if (*pfields < IFSTATS_FIELDS) - fprintf(fp, "Warning: incomplete row with %d (of %d) fields", + fprintf(fp, "Warning: incomplete row with %d (of %d) fields\n", *pfields, IFSTATS_FIELDS); *pfields = 0; prow->ifnum = ifnum; @@ -3472,7 +3472,7 @@ ifstats( } } if (fields != IFSTATS_FIELDS) - fprintf(fp, "Warning: incomplete row with %d (of %d) fields", + fprintf(fp, "Warning: incomplete row with %d (of %d) fields\n", fields, IFSTATS_FIELDS); fflush(fp); -- 2.47.3