X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fregex%2Ffnmatch.c;h=c0856f991939655b48ab0336090ee785b6c5713e;hp=5f2fccdb083bfd477d14e7ad3c38f4130ef4a9fb;hb=b6dbdc69b6d969b416428e0eb467eefbe5a7837f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 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)))