From 3bedf8846f4d7a5cb38276b274662d62a36dcd52 Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Mon, 12 Dec 2005 20:50:00 +0000 Subject: Marged chris/win32/merge/07-win32-fixes at r210 to trunk --- lib/common/DebugPrintf.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/common/DebugPrintf.cpp') 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 -- cgit v1.2.3