From c5f5c1e1e0e7e01c64e7caa7b13dd396f372838f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 25 Nov 2019 13:41:19 -0500 Subject: remove unnecessary text from error message --- wc.c | 3 +-- 1 file changed, 1 insertion(+), 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; } } -- cgit v1.2.1