aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/lineedit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 7aca71176..9a04c38bf 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -564,7 +564,11 @@ static int path_parse(char ***p, int flags)
564 tmp = (char*)pth; 564 tmp = (char*)pth;
565 npth = 1; /* path component count */ 565 npth = 1; /* path component count */
566 while (1) { 566 while (1) {
567#if ENABLE_PLATFORM_MINGW32
568 tmp = next_path_sep(tmp);
569#else
567 tmp = strchr(tmp, ':'); 570 tmp = strchr(tmp, ':');
571#endif
568 if (!tmp) 572 if (!tmp)
569 break; 573 break;
570 if (*++tmp == '\0') 574 if (*++tmp == '\0')
@@ -576,7 +580,11 @@ static int path_parse(char ***p, int flags)
576 res[0] = tmp = xstrdup(pth); 580 res[0] = tmp = xstrdup(pth);
577 npth = 1; 581 npth = 1;
578 while (1) { 582 while (1) {
583#if ENABLE_PLATFORM_MINGW32
584 tmp = next_path_sep(tmp);
585#else
579 tmp = strchr(tmp, ':'); 586 tmp = strchr(tmp, ':');
587#endif
580 if (!tmp) 588 if (!tmp)
581 break; 589 break;
582 *tmp++ = '\0'; /* ':' -> '\0' */ 590 *tmp++ = '\0'; /* ':' -> '\0' */