diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/bunzip2.c | 2 | ||||
-rw-r--r-- | archival/gunzip.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/bunzip2.c b/archival/bunzip2.c index 757654d..da9808e 100644 --- a/archival/bunzip2.c +++ b/archival/bunzip2.c @@ -2324,7 +2324,7 @@ int bunzip2_main(int argc, char **argv) show_usage(); } src_stream = xfopen(argv[1], "r"); - save_name = strdup(argv[1]); + save_name = xstrdup(argv[1]); save_name_ptr = strrchr(save_name, '.'); if (save_name_ptr == NULL) { return(FALSE); diff --git a/archival/gunzip.c b/archival/gunzip.c index 430bc63..3886725 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c @@ -114,7 +114,7 @@ extern int gunzip_main(int argc, char **argv) if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) { flags |= gunzip_to_stdout; } else { - if_name = strdup(argv[optind]); + if_name = xstrdup(argv[optind]); /* Open input file */ in_file = xfopen(if_name, "r"); |