llama.cpp/include
kallewoof 484d2f31ae
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
2024-12-11 14:48:04 +01:00
..
llama-cpp.h Introduce llama-run (#10291) 2024-11-25 22:56:24 +01:00
llama.h bug-fix: snprintf prints NULL in place of the last character (#10419) 2024-12-11 14:48:04 +01:00