[libc++][format] Fixes string-literal formatting.
authorMark de Wever <koraq@xs4all.nl>
Mon, 30 May 2022 16:22:00 +0000 (18:22 +0200)
committerMark de Wever <koraq@xs4all.nl>
Wed, 1 Jun 2022 15:49:09 +0000 (17:49 +0200)
commit04a3146caa0f25014c3c9c5ebce5b5a292d77fc9
tree33d2bb713bb5bdd29d53ed535debd00255a721a3
parentfe2cc16035eaab27619fb8be7dd85845c00bda9d
[libc++][format] Fixes string-literal formatting.

Formatting a string-literal had an off-by-one issue where the NUL
terminator became part of the formatted output.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D126665
libcxx/include/__format/format_arg_store.h
libcxx/test/std/utilities/format/format.functions/format_tests.h