aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2002-11-06 16:47:46 +0000
committerMax Horn2002-11-06 16:47:46 +0000
commit2d6f9472c76e549226695ae13f4a965072ff5411 (patch)
tree39798e1f78ad535ae06bed054b10914c0d05cfae /common
parent18153f22c9c45d03ed5a3b77d17d7b7a9c602b58 (diff)
downloadscummvm-rg350-2d6f9472c76e549226695ae13f4a965072ff5411.tar.gz
scummvm-rg350-2d6f9472c76e549226695ae13f4a965072ff5411.tar.bz2
scummvm-rg350-2d6f9472c76e549226695ae13f4a965072ff5411.zip
use strcat instead of sprintf+strlen
svn-id: r5446
Diffstat (limited to 'common')
-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