diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-02-18 12:02:24 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-02-18 12:02:24 -0500 |
commit | 886cc2b86a2eb1c521d466fac9d107c2fa7ca115 (patch) | |
tree | 53bdd07518df7677b9959dac6e70b7bcd0156877 /src/term.c | |
parent | 73a37a6958c1cb93dafacc4c778567c239f2b171 (diff) | |
download | emacs-886cc2b86a2eb1c521d466fac9d107c2fa7ca115.tar.gz |
(fatal): Add a final \n if needed (bug#5596).
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 2dc2d2d2015..56c76fc6009 100644 --- a/src/term.c +++ b/src/term.c @@ -3938,6 +3938,8 @@ fatal (const char *str, ...) va_start (ap, str); fprintf (stderr, "emacs: "); vfprintf (stderr, str, ap); + if (!(strlen (str) > 0 && str[strlen (str) - 1] == '\n')) + fprintf (stderr, "\n"); va_end (ap); fflush (stderr); exit (1); |