aboutsummaryrefslogtreecommitdiffstats
path: root/xtest.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-28 14:34:26 +0100
committerMattias Andrée <maandree@kth.se>2016-12-28 14:34:26 +0100
commit6002781b029547a3c4c8919fcd73334a9ec7ceb3 (patch)
tree32adb85956109a99d8acf8cdd639698332676489 /xtest.c
parentAdd Makefile (diff)
downloadxtest-6002781b029547a3c4c8919fcd73334a9ec7ceb3.tar.gz
xtest-6002781b029547a3c4c8919fcd73334a9ec7ceb3.tar.bz2
xtest-6002781b029547a3c4c8919fcd73334a9ec7ceb3.tar.xz
Fix error reporting: argv0 as missing1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--xtest.c4
1 files 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: <stdin>: %s\n", strerror(errno));
+ fprintf(stderr, "%s: <stdin>: %s\n", argv0, strerror(errno));
return 1;
}
}
if (ferror(stdout)) {
- fprintf(stderr, "%s: <stdout>: %s\n", strerror(errno));
+ fprintf(stderr, "%s: <stdout>: %s\n", argv0, strerror(errno));
return 1;
}
return 0;