# HG changeset patch # User Michael Witten # Date 1453134199 -28800 # Node ID 5dde22e8a18984ff51f85bb91766e9f2758d1af7 # Parent 952624727411d041e0c45a85d0fa3d59e94044b7 scp: Have `fatal()' append a newline to the message Date: Wed, 4 Nov 2015 20:33:19 -0000 It would seem that it's standard practice not to include a newline in the message text, but that results in poor formatting, as a shell's command line then begins on the line of the error message itself. This commit simply instructs `fatal()' to append a newline after the message, which should be suitable behavior for all of the invocations I've come across. diff -r 952624727411 -r 5dde22e8a189 scpmisc.c --- a/scpmisc.c Tue Jan 19 00:22:23 2016 +0800 +++ b/scpmisc.c Tue Jan 19 00:23:19 2016 +0800 @@ -226,6 +226,7 @@ va_start(args, fmt); vfprintf(stderr, fmt, args); va_end(args); + fputc('\n', stderr); exit(255); }