diff options
Diffstat (limited to 'gcc/intl.c')
-rw-r--r-- | gcc/intl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/intl.c b/gcc/intl.c index f76dbada97b..dfc015d2123 100644 --- a/gcc/intl.c +++ b/gcc/intl.c @@ -91,7 +91,7 @@ size_t gcc_gettext_width (const char *msgstr) { size_t nwcs = mbstowcs (0, msgstr, 0); - wchar_t *wmsgstr = alloca ((nwcs + 1) * sizeof (wchar_t)); + wchar_t *wmsgstr = XALLOCAVEC (wchar_t, nwcs + 1); mbstowcs (wmsgstr, msgstr, nwcs + 1); return wcswidth (wmsgstr, nwcs); |