*: reuse more strings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-01-22 10:13:52 +01:00
parent 6aab061d2d
commit 778794d1dd
3 changed files with 17 additions and 17 deletions

View File

@@ -626,7 +626,7 @@ int unzip_main(int argc, char **argv)
printf("replace %s? [y]es, [n]o, [A]ll, [N]one, [r]ename: ", dst_fn);
fflush_all();
if (!fgets(key_buf, sizeof(key_buf), stdin)) {
bb_perror_msg_and_die("can't read input");
bb_perror_msg_and_die("can't read standard input");
}
i = key_buf[0];
}
@@ -669,7 +669,7 @@ int unzip_main(int argc, char **argv)
/* Prompt for new name */
printf("new name: ");
if (!fgets(key_buf, sizeof(key_buf), stdin)) {
bb_perror_msg_and_die("can't read input");
bb_perror_msg_and_die("can't read standard input");
}
free(dst_fn);
dst_fn = xstrdup(key_buf);