aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/head.c')
-rw-r--r--toys/posix/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/head.c b/toys/posix/head.c
index 5867dfb5..f300760d 100644
--- a/toys/posix/head.c
+++ b/toys/posix/head.c
@@ -39,7 +39,7 @@ static void do_head(int fd, char *name)
while (lines) {
len = read(fd, toybuf, size);
- if (len<0) perror_msg("%s",name);
+ if (len<0) perror_msg_raw(name);
if (len<1) break;
for(i=0; i<len;) if (toybuf[i++] == '\n' && !--lines) break;