diff options
author | Ron Yorston <rmy@pobox.com> | 2012-09-07 11:48:25 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-09-07 11:48:25 +0100 |
commit | fecf687cc358883de2da21de33346f0df204c80b (patch) | |
tree | d22c606157926fb659374ae68d55e3a874bacf25 /shell/shell_common.c | |
parent | b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa (diff) | |
parent | 6d463de46b418e6c4c8d1397033608f78b33ab21 (diff) | |
download | busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.tar.gz busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.tar.bz2 busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.zip |
Merge branch 'busybox' into merge
Conflicts:
include/libbb.h
shell/ash.c
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index 0ffe21e0b..f7503cac5 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -18,6 +18,9 @@ | |||
18 | */ | 18 | */ |
19 | #include "libbb.h" | 19 | #include "libbb.h" |
20 | #include "shell_common.h" | 20 | #include "shell_common.h" |
21 | #if !ENABLE_PLATFORM_MINGW32 | ||
22 | #include <sys/resource.h> /* getrlimit */ | ||
23 | #endif | ||
21 | 24 | ||
22 | const char defifsvar[] ALIGN1 = "IFS= \t\n"; | 25 | const char defifsvar[] ALIGN1 = "IFS= \t\n"; |
23 | 26 | ||
@@ -169,7 +172,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), | |||
169 | int timeout; | 172 | int timeout; |
170 | 173 | ||
171 | if ((bufpos & 0xff) == 0) | 174 | if ((bufpos & 0xff) == 0) |
172 | buffer = xrealloc(buffer, bufpos + 0x100); | 175 | buffer = xrealloc(buffer, bufpos + 0x101); |
173 | 176 | ||
174 | timeout = -1; | 177 | timeout = -1; |
175 | if (end_ms) { | 178 | if (end_ms) { |