summaryrefslogtreecommitdiff
path: root/wc.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-11-25 13:41:19 -0500
committerJakob Kaivo <jkk@ung.org>2019-11-25 13:41:19 -0500
commitc5f5c1e1e0e7e01c64e7caa7b13dd396f372838f (patch)
tree1dfb19942090c00131587f79ebd3b122c170fbce /wc.c
parent334bc87f4de4dd31399304a22102cc59ca63b79f (diff)
remove unnecessary text from error message
Diffstat (limited to 'wc.c')
-rw-r--r--wc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wc.c b/wc.c
index 56df7ac..bef54f4 100644
--- a/wc.c
+++ b/wc.c
@@ -89,8 +89,7 @@ static int wc(char *path, int flags)
if (path && strcmp(path, "-") != 0) {
f = fopen(path, "r");
if (f == NULL) {
- fprintf(stderr, "wc:couldn't open %s:%s\n", path,
- strerror(errno));
+ fprintf(stderr, "wc: %s: %s\n", path, strerror(errno));
return 1;
}
}