summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}