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-Tag: v0.7.11~75 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a6c399cf62bbd88f0f0142fd3e9e1e72bd093bc3;p=oweals%2Fmusl.git 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)))