diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-22 10:13:52 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-22 10:13:52 +0100 |
commit | 778794d1dd99f29d099eb80ae2750381bc5e0059 (patch) | |
tree | 8c7b648fd7c5995afca509d0a23f7124d21c3daa /archival/unzip.c | |
parent | 6aab061d2d6243505f7c21c7a92dcebc3922784c (diff) | |
download | busybox-w32-778794d1dd99f29d099eb80ae2750381bc5e0059.tar.gz busybox-w32-778794d1dd99f29d099eb80ae2750381bc5e0059.tar.bz2 busybox-w32-778794d1dd99f29d099eb80ae2750381bc5e0059.zip |
*: reuse more strings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index 046027cc6..83bf8f6d6 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -626,7 +626,7 @@ int unzip_main(int argc, char **argv) | |||
626 | printf("replace %s? [y]es, [n]o, [A]ll, [N]one, [r]ename: ", dst_fn); | 626 | printf("replace %s? [y]es, [n]o, [A]ll, [N]one, [r]ename: ", dst_fn); |
627 | fflush_all(); | 627 | fflush_all(); |
628 | if (!fgets(key_buf, sizeof(key_buf), stdin)) { | 628 | if (!fgets(key_buf, sizeof(key_buf), stdin)) { |
629 | bb_perror_msg_and_die("can't read input"); | 629 | bb_perror_msg_and_die("can't read standard input"); |
630 | } | 630 | } |
631 | i = key_buf[0]; | 631 | i = key_buf[0]; |
632 | } | 632 | } |
@@ -669,7 +669,7 @@ int unzip_main(int argc, char **argv) | |||
669 | /* Prompt for new name */ | 669 | /* Prompt for new name */ |
670 | printf("new name: "); | 670 | printf("new name: "); |
671 | if (!fgets(key_buf, sizeof(key_buf), stdin)) { | 671 | if (!fgets(key_buf, sizeof(key_buf), stdin)) { |
672 | bb_perror_msg_and_die("can't read input"); | 672 | bb_perror_msg_and_die("can't read standard input"); |
673 | } | 673 | } |
674 | free(dst_fn); | 674 | free(dst_fn); |
675 | dst_fn = xstrdup(key_buf); | 675 | dst_fn = xstrdup(key_buf); |