mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
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:
parent
0a05aa92fc
commit
5a688c2730
24 changed files with 105 additions and 94 deletions
|
@ -19,7 +19,7 @@ protected:
|
|||
|
||||
class Output {
|
||||
public:
|
||||
Output(const char *filename);
|
||||
Output(string filename);
|
||||
~Output();
|
||||
|
||||
int println(const char* fmt, ...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue