Displaying 1 result from an estimated 1 matches for "d9c2d136".
2019 Sep 06
2
[PATCH 1/1] log: do not print carriage return
...added '10.52.33.217' (ED25519) to the list of known hosts.^M)
Note the control character ^M. Removing the carriage return fixes this.
Signed-off-by: Christian Hesse <mail at eworm.de>
---
log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log.c b/log.c
index d9c2d136..7e0737c4 100644
--- a/log.c
+++ b/log.c
@@ -462,7 +462,7 @@ do_log(LogLevel level, const char *fmt, va_list args)
tmp_handler(level, fmtbuf, log_handler_ctx);
log_handler = tmp_handler;
} else if (log_on_stderr) {
- snprintf(msgbuf, sizeof msgbuf, "%.*s\r\n",
+ snprintf(msgbuf,...