aboutsummaryrefslogtreecommitdiff
path: root/shell/shell_common.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-09-06 13:28:10 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2012-09-06 13:28:10 +0200
commit9e71e3cea59c06d40234d8f3363c3f05112e8d5a (patch)
tree1a483c9e1482fa83465563f15f1ad2ecaef22e98 /shell/shell_common.c
parent50157f3decce78d3172314a5f97363faedba565a (diff)
downloadbusybox-9e71e3cea59c06d40234d8f3363c3f05112e8d5a.tar.gz
ash: fix "read -s" + ^C. Closes 5504
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r--shell/shell_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 780e27ebd..0051f21d9 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -170,7 +170,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val),
int timeout;
if ((bufpos & 0xff) == 0)
- buffer = xrealloc(buffer, bufpos + 0x100);
+ buffer = xrealloc(buffer, bufpos + 0x101);
timeout = -1;
if (end_ms) {