Use safe read
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 @@
 		}
 
 		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 @@
 		}
 
 		if (insize < (int) sizeof(inbuf) - IBUFSIZ) {
-			rsize = read(fd_in, inbuf + insize, IBUFSIZ);
+			rsize = safe_read(fd_in, inbuf + insize, IBUFSIZ);
 			insize += rsize;
 		}