bug-fix: snprintf prints NULL in place of the last character (#10419)
* bug-fix: snprintf prints NULL in place of the last character We need to give snprintf enough space to print the last character and the null character, thus we allocate one extra byte and then ignore it when converting to std::string. * add comment about extra null-term byte requirement
K
kallewoof committed
484d2f31aed34ff9f096e3961125762e81d9b7d6
Parent: 4b4d92b
Committed by GitHub <noreply@github.com>
on 12/11/2024, 1:48:04 PM