From 6002781b029547a3c4c8919fcd73334a9ec7ceb3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 28 Dec 2016 14:34:26 +0100 Subject: Fix error reporting: argv0 as missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- xtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtest.c b/xtest.c index cbf3015..5529eb9 100644 --- a/xtest.c +++ b/xtest.c @@ -142,13 +142,13 @@ main(int argc, char *argv[]) test(line); } if (ferror(stdin)) { - fprintf(stderr, "%s: : %s\n", strerror(errno)); + fprintf(stderr, "%s: : %s\n", argv0, strerror(errno)); return 1; } } if (ferror(stdout)) { - fprintf(stderr, "%s: : %s\n", strerror(errno)); + fprintf(stderr, "%s: : %s\n", argv0, strerror(errno)); return 1; } return 0; -- cgit v1.2.3-70-g09d2