aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/engine.cpp b/common/engine.cpp
index 6227cb9194..5067ac7378 100644
--- a/common/engine.cpp
+++ b/common/engine.cpp
@@ -116,7 +116,7 @@ void CDECL warning(const char *s, ...)
fprintf(stderr, "WARNING: %s!\n", buf);
#if defined( USE_WINDBG )
- sprintf(&buf[strlen(buf)], "\n");
+ strcat(buf, "\n");
OutputDebugString(buf);
#endif
}
@@ -137,7 +137,7 @@ void CDECL debug(int level, const char *s, ...)
printf("%s\n", buf);
#if defined( USE_WINDBG )
- sprintf(&buf[strlen(buf)], "\n");
+ strcat(buf, "\n");
OutputDebugString(buf);
#endif