aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 00:33:30 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:40 +0200
commit79deabdfb47409f31d0f6ea044b92e8eac09cec2 (patch)
tree9d98f13c81def52edd3c8c858eae540b4ee45346 /shell
parent59451394b5b3bb4ccee2b25c6fa5512ba4ca3a19 (diff)
downloadbusybox-w32-79deabdfb47409f31d0f6ea044b92e8eac09cec2.tar.gz
busybox-w32-79deabdfb47409f31d0f6ea044b92e8eac09cec2.tar.bz2
busybox-w32-79deabdfb47409f31d0f6ea044b92e8eac09cec2.zip
win32: ash: path_advance(): save space for .exe later
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index db27cefe5..8df1a4062 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2274,7 +2274,9 @@ path_advance(const char **path, const char *name)
2274 continue; 2274 continue;
2275#endif 2275#endif
2276 len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */ 2276 len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */
2277 while (stackblocksize() < len) 2277
2278 /* preserve space for .exe too */
2279 while (stackblocksize() < (ENABLE_PLATFORM_MINGW32 ? len+4 : len))
2278 growstackblock(); 2280 growstackblock();
2279 q = stackblock(); 2281 q = stackblock();
2280 if (p != start) { 2282 if (p != start) {