binpac: Migrate fmt() usage to strfmt()

The former is easy to misuse by accidentally storing the contents of
the temporary string return value and accessing it later.  There's also
potential pitfalls in changing it to return a pointer into a static
buffer, so instead start using strfmt() uniformly across the codebase
and change some methods to use strings instead of char*.
This commit is contained in:
Jon Siwek 2018-05-17 15:51:49 -05:00 committed by Tim Wojtulewicz
parent 0a05aa92fc
commit 5a688c2730
24 changed files with 105 additions and 94 deletions

View file

@ -19,7 +19,7 @@ protected:
class Output {
public:
Output(const char *filename);
Output(string filename);
~Output();
int println(const char* fmt, ...);