diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-01-31 22:22:02 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-01-31 22:22:02 +0100 |
commit | f5c65fa920d78cffe56fe4065f16241637808353 (patch) | |
tree | 0265b2fc8b7f69e366f418a86b3eb0976ea24300 /stdio-common/Makefile | |
parent | 2f39e44a8417b4186a7f15bfeac5d0b557e63e03 (diff) | |
download | glibc-f5c65fa920d78cffe56fe4065f16241637808353.zip glibc-f5c65fa920d78cffe56fe4065f16241637808353.tar.gz glibc-f5c65fa920d78cffe56fe4065f16241637808353.tar.bz2 |
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/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile index da3034d..34fdd6d 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 \ |