about summary refs log tree commit diff
path: root/stdio-common/printf_buffer_flush.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-12-19 18:56:55 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-12-19 18:56:55 +0100
commitfb9bd841b8e8b22a42fd68c56355c2ddd211db21 (patch)
tree400bb4dd9dff3c2dc884ad3c7eef1882752b920c /stdio-common/printf_buffer_flush.c
parent3d0005b54af06d3bb7ab9f85bfe6a27552b11f74 (diff)
downloadglibc-fb9bd841b8e8b22a42fd68c56355c2ddd211db21.tar.gz
glibc-fb9bd841b8e8b22a42fd68c56355c2ddd211db21.tar.xz
glibc-fb9bd841b8e8b22a42fd68c56355c2ddd211db21.zip
libio: Convert __vsprintf_internal to buffers
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'stdio-common/printf_buffer_flush.c')
-rw-r--r--stdio-common/printf_buffer_flush.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdio-common/printf_buffer_flush.c b/stdio-common/printf_buffer_flush.c
index bfd1f9d733..f44c8b887f 100644
--- a/stdio-common/printf_buffer_flush.c
+++ b/stdio-common/printf_buffer_flush.c
@@ -38,10 +38,14 @@ __printf_buffer_do_flush (struct __printf_buffer *buf)
   switch (buf->mode)
     {
     case __printf_buffer_mode_failed:
+    case __printf_buffer_mode_sprintf:
       return;
     case __printf_buffer_mode_snprintf:
       __printf_buffer_flush_snprintf ((struct __printf_buffer_snprintf *) buf);
       return;
+    case __printf_buffer_mode_sprintf_chk:
+      __chk_fail ();
+      break;
     case __printf_buffer_mode_to_file:
       __printf_buffer_flush_to_file ((struct __printf_buffer_to_file *) buf);
       return;