aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/wc.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/wc.c')
-rw-r--r--toys/posix/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/wc.c b/toys/posix/wc.c
index 815e08b1..b7f09b4e 100644
--- a/toys/posix/wc.c
+++ b/toys/posix/wc.c
@@ -52,7 +52,7 @@ static void do_wc(int fd, char *name)
for (;;) {
len = read(fd, toybuf, sizeof(toybuf));
- if (len<0) perror_msg("%s", name);
+ if (len<0) perror_msg_raw(name);
if (len<1) break;
for (i=0; i<len; i+=clen) {
wchar_t wchar;