diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-12 01:43:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-12 01:43:06 +0000 |
commit | 8edeb6297c9aeb421c5a38f78a54a3aaa018f9db (patch) | |
tree | c1916a26655023f75db38c1b6a3903ddf0ef4aba /libc/misc/glob/glob.c | |
parent | d2363d3bedb702a3bb9e4244a0f4027db47327e4 (diff) |
import fix from glibc to resolve segfault reported by wmq in Bug 335
Diffstat (limited to 'libc/misc/glob/glob.c')
-rw-r--r-- | libc/misc/glob/glob.c | 2 |
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; |