projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74d306
)
eliminate (harmless in this case) vla usage in fnmatch.c
author
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Jun 2011 17:30:56 +0000
(13:30 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Jun 2011 17:30:56 +0000
(13:30 -0400)
src/regex/fnmatch.c
patch
|
blob
|
history
diff --git
a/src/regex/fnmatch.c
b/src/regex/fnmatch.c
index 5f2fccdb083bfd477d14e7ad3c38f4130ef4a9fb..c0856f991939655b48ab0336090ee785b6c5713e 100644
(file)
--- 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)))