projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix crash in pthread_testcancel if pthread_self has not been called
[musl]
/
src
/
regex
/
fnmatch.c
diff --git
a/src/regex/fnmatch.c
b/src/regex/fnmatch.c
index
5f2fccd
..
c0856f9
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 {
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)))
memcpy(class, p, z-p);
class[z-p] = 0;
if (iswctype(k, wctype(class)))