diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-11-26 16:43:09 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-11-26 16:43:09 +0100 |
commit | d033e6327d1e63f5d212981fca785b5086491905 (patch) | |
tree | 12c18d6fb0876012680b0ce9712450d6fe488b48 | |
parent | 0f88200247cc61175c7a1d98a3e935aedce93f3b (diff) |
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.
-rw-r--r-- | nest/cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |