Use safe read

This commit is contained in:
Glenn L McGrath 2003-11-21 22:17:28 +00:00
parent d0550d8fc9
commit 1a2d75fd72
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}