]> Sergey Matveev's repositories - nnn.git/commitdiff
printerr() should print to stderr
authorsin <sin@2f30.org>
Wed, 22 Oct 2014 13:08:16 +0000 (14:08 +0100)
committersin <sin@2f30.org>
Wed, 22 Oct 2014 13:08:16 +0000 (14:08 +0100)
noice.c

diff --git a/noice.c b/noice.c
index cd938f3aa0a1a2b9d3329334446c94cf9041b96e..b8e0b4adbe9d02b00476c8a9ea578d00c736b180 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -189,7 +189,7 @@ void
 printerr(int ret, char *prefix)
 {
        exitcurses();
-       printf("%s: %s\n", prefix, strerror(errno));
+       fprintf(stderr, "%s: %s\n", prefix, strerror(errno));
        exit(ret);
 }