]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
vfprintf: Reduce WORK_BUFFER_SIZE for wchar_t builds
authorFlorian Weimer <fweimer@redhat.com>
Thu, 29 Jun 2017 07:34:22 +0000 (09:34 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 29 Jun 2017 07:34:22 +0000 (09:34 +0200)
ChangeLog
stdio-common/vfprintf.c

index 5e2cc4678f0636e5662801100867e4f8ea107ea6..db0c4ad37ee0b86e6bcbdb4415dd642fa06dd944 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-29  Florian Weimer  <fweimer@redhat.com>
+
+       * stdio-common/vfprintf.c (WORK_BUFFER_SIZE): Reduce size for
+       wchar_t builds.
+
 2017-06-29  Florian Weimer  <fweimer@redhat.com>
 
        * stdio-common/tst-vfprintf-mbs-prec.c: New file.
index b8c87a539fe52ab1c6f872f754f8eb31d46c5acb..4e22c75aa5c6ef61397e48bbd45dc95a51a12cd1 100644 (file)
@@ -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.  */