Use fopen wrapper.

This commit is contained in:
Matt Kraai
2001-11-12 16:44:55 +00:00
parent c5f9a9dd0c
commit a5f09c668e
3 changed files with 8 additions and 13 deletions

View File

@ -68,8 +68,7 @@ extern int rpm2cpio_main(int argc, char **argv)
if (argc == 1) {
rpmfile = stdin;
} else {
rpmfile = fopen(argv[1], "r");
if (!rpmfile) perror_msg_and_die("Can't open rpm file");
rpmfile = xfopen(argv[1], "r");
/* set the buffer size */
setvbuf(rpmfile, NULL, _IOFBF, 0x8000);
}