>From 7fc47d4a60460c8ac2d77ebf0c2bb7ca131ccd69 Mon Sep 17 00:00:00 2001 From: Brand Huntsman Date: Thu, 18 Oct 2018 18:21:44 -0600 Subject: [PATCH] send newline after die() calls lacking it Signed-off-by: Brand Huntsman --- src/utils.c | 4 ++-- src/winio.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.c b/src/utils.c index 36db8d1e..45c45ce6 100644 --- a/src/utils.c +++ b/src/utils.c @@ -357,7 +357,7 @@ void *nmalloc(size_t howmuch) void *r = malloc(howmuch); if (r == NULL && howmuch != 0) - die(_("nano is out of memory!")); + die(_("nano is out of memory!\n")); return r; } @@ -369,7 +369,7 @@ void *nrealloc(void *ptr, size_t howmuch) void *r = realloc(ptr, howmuch); if (r == NULL && howmuch != 0) - die(_("nano is out of memory!")); + die(_("nano is out of memory!\n")); return r; } diff --git a/src/winio.c b/src/winio.c index 33fdde0a..7f8a4e00 100644 --- a/src/winio.c +++ b/src/winio.c @@ -204,7 +204,7 @@ void read_keys_from(WINDOW *win) * check if errno is set to EIO ("Input/output error") and die in * that case, but it's not always set properly. Argh. */ if (input == ERR && ++errcount == MAX_BUF_SIZE) - die(_("Too many errors from stdin")); + die(_("Too many errors from stdin\n")); } curs_set(0); -- 2.18.1