diff options
author | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-12 20:50:00 +0000 |
---|---|---|
committer | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-12 20:50:00 +0000 |
commit | 3bedf8846f4d7a5cb38276b274662d62a36dcd52 (patch) | |
tree | 9d51de8b0f3d06ba6549a5a1958e52f592343140 /lib/common/DebugPrintf.cpp | |
parent | 81d8eda2419e7a23088a98cdfc52a305c9ceac0d (diff) |
Marged chris/win32/merge/07-win32-fixes at r210 to trunk
Diffstat (limited to 'lib/common/DebugPrintf.cpp')
-rwxr-xr-x | lib/common/DebugPrintf.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common/DebugPrintf.cpp b/lib/common/DebugPrintf.cpp index 02c25496..d07604b7 100755 --- a/lib/common/DebugPrintf.cpp +++ b/lib/common/DebugPrintf.cpp @@ -55,10 +55,16 @@ int BoxDebugTrace(const char *format, ...) // But tracing to syslog is independent of tracing being on or not if(BoxDebugTraceToSyslog) { +#ifdef WIN32 // Remove trailing '\n', if it's there + if(r > 0 && text[r-1] == '\n') + { + text[r-1] = '\0'; +#else if(r > 0 && text[r] == '\n') { text[r] = '\0'; +#endif --r; } // Log it |