use strcat instead of sprintf+strlen

svn-id: r5446
This commit is contained in:
Max Horn 2002-11-06 16:47:46 +00:00
parent 18153f22c9
commit 2d6f9472c7

View File

@ -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