about summary refs log tree commit diff
path: root/stdio-common/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-01-31 22:22:02 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-01-31 22:22:02 +0100
commitf5c65fa920d78cffe56fe4065f16241637808353 (patch)
tree0265b2fc8b7f69e366f418a86b3eb0976ea24300 /stdio-common/Makefile
parent2f39e44a8417b4186a7f15bfeac5d0b557e63e03 (diff)
downloadglibc-f5c65fa920d78cffe56fe4065f16241637808353.tar.gz
glibc-f5c65fa920d78cffe56fe4065f16241637808353.tar.xz
glibc-f5c65fa920d78cffe56fe4065f16241637808353.zip
libio: Update number of written bytes in dprintf implementation
The __printf_buffer_flush_dprintf function needs to record that
the buffer has been written before reusing it.  Without this
accounting, dprintf always returns zero.

Fixes commit 8ece45e4f586abd212d1c02d74d38ef681a45600
("libio: Convert __vdprintf_internal to buffers").

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'stdio-common/Makefile')
-rw-r--r--stdio-common/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index da3034d847..34fdd6d1f8 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -180,6 +180,7 @@ tests := \
   tst-bz11319 \
   tst-bz11319-fortify2 \
   tst-cookie \
+  tst-dprintf-length \
   tst-fdopen \
   tst-ferror \
   tst-fgets \