summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-05 13:30:56 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-05 13:30:56 -0400
commita6c399cf62bbd88f0f0142fd3e9e1e72bd093bc3 (patch)
treefa34b2fe7dbf72ec0ab2c7a27d8974ff45379d76 /src
parentc74d306f47e9f212a63dc0187fb08aa275a8f1a5 (diff)
downloadmusl-a6c399cf62bbd88f0f0142fd3e9e1e72bd093bc3.tar.gz
eliminate (harmless in this case) vla usage in fnmatch.c
Diffstat (limited to 'src')
-rw-r--r--src/regex/fnmatch.c2
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)))