From: Ondrej Zajicek (work) Date: Tue, 26 Nov 2019 15:43:09 +0000 (+0100) Subject: CLI: Fix continuation lines after final one X-Git-Tag: v2.0.8~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d033e6327d1e63f5d212981fca785b5086491905;p=thirdparty%2Fbird.git CLI: Fix continuation lines after final one Continuation lines may use short form (with space instead of message number), but this should not be done when previous line is final. Thanks to Kenth Eriksson for the bugreport and analysis. --- diff --git a/nest/cli.c b/nest/cli.c index 24962f107..b54a0d76d 100644 --- a/nest/cli.c +++ b/nest/cli.c @@ -143,6 +143,7 @@ cli_printf(cli *c, int code, char *msg, ...) { size = bsprintf(buf, "%04d ", cd); errcode = 8000; + cd = 0; /* Final message - no more continuation lines */ } c->last_reply = cd;