llama.cpp
484d2f31 - bug-fix: snprintf prints NULL in place of the last character (#10419)

Commit
1 year ago
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
Author
Parents
Loading