diff options
Diffstat (limited to 'toys/posix/file.c')
-rw-r--r-- | toys/posix/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/file.c b/toys/posix/file.c index e48a5472..9428ecf4 100644 --- a/toys/posix/file.c +++ b/toys/posix/file.c @@ -210,7 +210,7 @@ static void do_regular_file(int fd, char *name) // zero through elf shnum, just in case memset(s, 0, 80); - if ((len = readall(fd, s, sizeof(toybuf)-8))<0) perror_msg("%s", name); + if ((len = readall(fd, s, sizeof(toybuf)-8))<0) perror_msg_raw(name); if (!len) xputs("empty"); // 45 bytes: https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html @@ -399,7 +399,7 @@ static void do_regular_file(int fd, char *name) } else { if (lseek(fd, ver_off - len + 0x200, SEEK_CUR)<0 || (len = readall(fd, s, sizeof(toybuf)))<0) - return perror_msg("%s", name); + return perror_msg_raw(name); } xprintf(", version %s\n", s); return; |