From: Juergen Perlinger Date: Thu, 7 Sep 2017 13:44:14 +0000 (+0200) Subject: [Bug 3430] ntpq dumps core (SIGSEGV) for "keytype md2" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6bc1ac776e9473efd60cc1d7cb5cabaeb3ecb46;p=thirdparty%2Fntp.git [Bug 3430] ntpq dumps core (SIGSEGV) for "keytype md2" - side kick: missing linefeed in 'ifstat' warning messes up screen bk: 59b14d2e-xIkyfGpKuShlhkO8hDsSw --- 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);