From 59e77816137c3d1ff2229623d8385e91e99af375 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Mon, 17 Mar 2008 18:22:23 +0000 Subject: [PATCH] Don't allocate the constant array "props" on the stack in wctype. PR: 74743 Submitted by: knut st. osmundsen Approved by: rwatson (mentor) MFC after: 1 month --- lib/libc/locale/wctype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/locale/wctype.c b/lib/libc/locale/wctype.c index f9aa8dd2fe48..f94a735d4e9c 100644 --- a/lib/libc/locale/wctype.c +++ b/lib/libc/locale/wctype.c @@ -42,7 +42,7 @@ iswctype(wint_t wc, wctype_t charclass) wctype_t wctype(const char *property) { - struct { + static const struct { const char *name; wctype_t mask; } props[] = {