From 08d01cae60aa3966ed21e6ec70bbe9fef730e012 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 29 Jun 2017 09:34:22 +0200 Subject: vfprintf: Reduce WORK_BUFFER_SIZE for wchar_t builds --- stdio-common/vfprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdio-common') diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index b8c87a539f..4e22c75aa5 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -205,7 +205,7 @@ typedef wchar_t THOUSANDS_SEP_T; static const CHAR_T null[] = L_("(null)"); /* Size of the work_buffer variable (in characters, not bytes. */ -enum { WORK_BUFFER_SIZE = 1000 }; +enum { WORK_BUFFER_SIZE = 1000 / sizeof (CHAR_T) }; /* This table maps a character into a number representing a class. In each step there is a destination label for each class. */ -- cgit v1.2.1