diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-28 14:34:26 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-28 14:34:26 +0100 |
commit | 6002781b029547a3c4c8919fcd73334a9ec7ceb3 (patch) | |
tree | 32adb85956109a99d8acf8cdd639698332676489 | |
parent | Add Makefile (diff) | |
download | xtest-1.tar.gz xtest-1.tar.bz2 xtest-1.tar.xz |
Fix error reporting: argv0 as missing1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | xtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |