[libcxx-commits] [libcxx] [libc++][filesystem] Increase error message buffer size to prevent truncation (PR #203531)

Sean Perry via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 19 14:31:11 PDT 2026


================

----------------
perry-ca wrote:

The value in size is the number of bytes excluding the null byte.  The call to vsnprintf here will print size-1 characters into the buffer along with the null terminator.  This matches the behaviour you describe.

Should the new size actually be `size+1`?

https://github.com/llvm/llvm-project/pull/203531


More information about the libcxx-commits mailing list