diff options
author | Glenn L McGrath | 2003-11-21 22:17:28 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-11-21 22:17:28 +0000 |
commit | 1a2d75fd7273e8de936e5fd91462bdff381f9b62 (patch) | |
tree | 6d36d6010cb46c85e2166a7cf2fcb095ad248c69 /archival | |
parent | d0550d8fc9315f0e5b90caf7da1b35f7ace7c43c (diff) | |
download | busybox-1a2d75fd7273e8de936e5fd91462bdff381f9b62.zip busybox-1a2d75fd7273e8de936e5fd91462bdff381f9b62.tar.gz |
Use safe read
Diffstat (limited to 'archival')
-rw-r--r-- | archival/libunarchive/decompress_uncompress.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/uncompress.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c index 5046e8a..65418a7 100644 --- a/archival/libunarchive/decompress_uncompress.c +++ b/archival/libunarchive/decompress_uncompress.c @@ -164,7 +164,7 @@ extern int uncompress(int fd_in, int fd_out) } if (insize < (int) sizeof(inbuf) - IBUFSIZ) { - rsize = read(fd_in, inbuf + insize, IBUFSIZ); + rsize = safe_read(fd_in, inbuf + insize, IBUFSIZ); insize += rsize; } diff --git a/archival/libunarchive/uncompress.c b/archival/libunarchive/uncompress.c index 5046e8a..65418a7 100644 --- a/archival/libunarchive/uncompress.c +++ b/archival/libunarchive/uncompress.c @@ -164,7 +164,7 @@ extern int uncompress(int fd_in, int fd_out) } if (insize < (int) sizeof(inbuf) - IBUFSIZ) { - rsize = read(fd_in, inbuf + insize, IBUFSIZ); + rsize = safe_read(fd_in, inbuf + insize, IBUFSIZ); insize += rsize; } |