mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 17:52:17 +00:00
# Actor Viewer tool: added controls to toggle shadows, ground and polygon counts.
Elsewhere: Disabled stack-trace test because it gives me assertion failures. Fixed some uses of snprintf (which doesn't always add a \0 to the end of the string), then got bored so there are still lots of broken ones. Probably should replace snprintf with something more like snprintf_s (but non-fatal) or something. Made CLogger output valid HTML (except for the potentially dodgy doctype). Removed its memory-logger, since we never use it and MICROLOG can be used instead for quick execution-tracing. Added tests to make sure CLogger handles long strings properly (which it didn't). Made CLogger not a singleton, so it can be tested sensibly. This was SVN commit r4424.
This commit is contained in:
@@ -1022,6 +1022,7 @@ void CGUI::ReportParseError(const char *str, ...)
|
||||
|
||||
va_start(argp, str);
|
||||
vsnprintf2(buffer, sizeof(buffer), str, argp);
|
||||
buffer[sizeof(buffer)-1] = '\0';
|
||||
va_end(argp);
|
||||
|
||||
// Print header
|
||||
|
||||
Reference in New Issue
Block a user