From 1a2d75fd7273e8de936e5fd91462bdff381f9b62 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 21 Nov 2003 22:17:28 +0000 Subject: Use safe read --- archival/libunarchive/decompress_uncompress.c | 2 +- archival/libunarchive/uncompress.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'archival/libunarchive') diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c index 5046e8a26..65418a7ca 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 5046e8a26..65418a7ca 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; } -- cgit v1.2.3