提交 a6c399cf 编写于 作者: R Rich Felker

eliminate (harmless in this case) vla usage in fnmatch.c

上级 c74d306f
......@@ -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)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册