mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
use strcat instead of sprintf+strlen
svn-id: r5446
This commit is contained in:
parent
18153f22c9
commit
2d6f9472c7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user