aboutsummaryrefslogtreecommitdiff
path: root/gob
diff options
context:
space:
mode:
authorJonathan Gray2005-04-09 01:52:44 +0000
committerJonathan Gray2005-04-09 01:52:44 +0000
commit24c92d00919500a725a6d4c4797b48088b56431f (patch)
tree3473f42551f3263c3aa586e48d2648f251f293f3 /gob
parentaff66038f3fd5b0e5af49c94c7f0a5270981f7cf (diff)
downloadscummvm-rg350-24c92d00919500a725a6d4c4797b48088b56431f.tar.gz
scummvm-rg350-24c92d00919500a725a6d4c4797b48088b56431f.tar.bz2
scummvm-rg350-24c92d00919500a725a6d4c4797b48088b56431f.zip
Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN. Some ports may need a new stub for this, discussed with Chrilith. svn-id: r17463
Diffstat (limited to 'gob')
-rw-r--r--gob/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gob/debug.cpp b/gob/debug.cpp
index ff1a8a9440..1cc9e8ad32 100644
--- a/gob/debug.cpp
+++ b/gob/debug.cpp
@@ -26,7 +26,7 @@
namespace Gob {
static int16 logFile = -2;
-static char buf[256];
+static char buf[STRINGBUFLEN];
extern uint32 always0_dword_23EC_560;
@@ -50,7 +50,7 @@ void log_write(const char *format, ...) {
log_init();
if (logFile >= 0) {
- vsprintf(buf, format, lst);
+ vsnprintf(buf, STRINGBUFLEN, format, lst);
write(logFile, buf, strlen(buf));
}