diff options
Diffstat (limited to 'cat.c')
-rw-r--r-- | cat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ void cat(int fd, char * name) { char buffer[4096]; - size_t length; + ssize_t length; while (0 < (length=read(fd, buffer, sizeof(buffer)))) if (length != write(1, buffer, length)) panic("write: %s: %s", name, strerror(errno)); |