diff options
Diffstat (limited to 'shell')
-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) { |