summaryrefslogtreecommitdiff
path: root/libc/misc/glob
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-12 01:43:06 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-12 01:43:06 +0000
commit8edeb6297c9aeb421c5a38f78a54a3aaa018f9db (patch)
treec1916a26655023f75db38c1b6a3903ddf0ef4aba /libc/misc/glob
parentd2363d3bedb702a3bb9e4244a0f4027db47327e4 (diff)
import fix from glibc to resolve segfault reported by wmq in Bug 335
Diffstat (limited to 'libc/misc/glob')
-rw-r--r--libc/misc/glob/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/glob/glob.c b/libc/misc/glob/glob.c
index 14e2a6e22..a93cf0ab4 100644
--- a/libc/misc/glob/glob.c
+++ b/libc/misc/glob/glob.c
@@ -59,7 +59,7 @@ int glob_pattern_p(const char *pattern, int quote)
return 1;
case '\\':
- if (quote)
+ if (quote && p[1] != '\0')
++p;
break;