diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 00:33:30 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 19:46:37 +1000 |
commit | 78519fdc536cbd5ce6e0d2c41d5de28e814267c8 (patch) | |
tree | cfb018644e9976b4971c9da764a220b53a194fe3 | |
parent | df0d6904f35049e31d5b484b127fcb97c7f3ef5f (diff) | |
download | busybox-w32-78519fdc536cbd5ce6e0d2c41d5de28e814267c8.tar.gz busybox-w32-78519fdc536cbd5ce6e0d2c41d5de28e814267c8.tar.bz2 busybox-w32-78519fdc536cbd5ce6e0d2c41d5de28e814267c8.zip |
win32: ash: path_advance(): save space for .exe later
-rw-r--r-- | shell/ash.c | 4 |
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) { |