From: Rich Felker Date: Sun, 5 Jun 2011 17:30:56 +0000 (-0400) Subject: eliminate (harmless in this case) vla usage in fnmatch.c X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=a6c399cf62bbd88f0f0142fd3e9e1e72bd093bc3 eliminate (harmless in this case) vla usage in fnmatch.c --- 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)))