Skip to content

Commit 0d658a3

Browse files
cmb69NattyNarwhal
authored andcommitted
change to IS_SLASH for Windows
1 parent 48fbd32 commit 0d658a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

win32/glob.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
702702
/* Find end of next segment, copy tentatively to pathend. */
703703
q = pathend;
704704
p = pattern;
705-
while (*p != EOS && *p != SEP) {
705+
while (*p != EOS && !IS_SLASH(*p)) {
706706
if (ismeta(*p))
707707
anymeta = 1;
708708
if (q+1 > pathend_last)
@@ -713,7 +713,7 @@ glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
713713
if (!anymeta) { /* No expansion, do next segment. */
714714
pathend = q;
715715
pattern = p;
716-
while (*pattern == SEP) {
716+
while (IS_SLASH(*pattern)) {
717717
if (pathend+1 > pathend_last)
718718
return (1);
719719
*pathend++ = *pattern++;

0 commit comments

Comments
 (0)