diff options
Diffstat (limited to 'src/regex/fnmatch.c')
-rw-r--r-- | src/regex/fnmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex/fnmatch.c b/src/regex/fnmatch.c index 5f2fccdb..c0856f99 100644 --- a/src/regex/fnmatch.c +++ b/src/regex/fnmatch.c @@ -102,7 +102,7 @@ int fnmatch(const char *p, const char *s, int flags) if (!*z || z-p > 32) { /* FIXME: symbolic const? */ return FNM_NOMATCH; } else { - char class[z-p+1]; + char class[33]; memcpy(class, p, z-p); class[z-p] = 0; if (iswctype(k, wctype(class))) |