summaryrefslogtreecommitdiff
path: root/archival/gunzip.c
diff options
context:
space:
mode:
authorMatt Kraai2001-11-12 16:57:27 +0000
committerMatt Kraai2001-11-12 16:57:27 +0000
commitc8227639db90c3147ef68f33c98e96b0ab6b01d6 (patch)
treeb704ef3f684a41c7705b5e36dac2127d23d129c4 /archival/gunzip.c
parent357cfc739ed5f5c00ee46a43820a1d02367e3b38 (diff)
downloadbusybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.zip
busybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.gz
Change strdup calls to xstrdup (patch from Steve Merrifield).
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r--archival/gunzip.c2
1 files changed, 1 insertions, 1 deletions
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");