Browse Source
The C++ standard indicates these functions always return a null-terminated string. We should rename these functions if we're not going to conform to the standards. From https://en.cppreference.com/w/cpp/io/c/vfprintf : "Writes the results to a character string buffer. At most buf_size-1 characters are written. The resulting character string will be terminated with a null character" We are still not standards-compliant in the case a length of 0 is passed in, returning 0 where we should return the space that would be required to store the formatted string.mission-4.1.18
Peter Barker
7 years ago
committed by
Andrew Tridgell
1 changed files with 5 additions and 2 deletions
Loading…
Reference in new issue