From a6c399cf62bbd88f0f0142fd3e9e1e72bd093bc3 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 5 Jun 2011 13:30:56 -0400 Subject: [PATCH] eliminate (harmless in this case) vla usage in fnmatch.c --- src/regex/fnmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.20.1