aboutsummaryrefslogtreecommitdiff
path: root/simon/charset.cpp
diff options
context:
space:
mode:
authorJonathan Gray2005-04-09 01:52:44 +0000
committerJonathan Gray2005-04-09 01:52:44 +0000
commit24c92d00919500a725a6d4c4797b48088b56431f (patch)
tree3473f42551f3263c3aa586e48d2648f251f293f3 /simon/charset.cpp
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 'simon/charset.cpp')
-rw-r--r--simon/charset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simon/charset.cpp b/simon/charset.cpp
index 1fd55f74fa..5996b4ed12 100644
--- a/simon/charset.cpp
+++ b/simon/charset.cpp
@@ -223,7 +223,7 @@ void SimonEngine::showMessageFormat(const char *s, ...) {
va_list va;
va_start(va, s);
- vsprintf(buf, s, va);
+ vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
if (!_fcs_data_1[_fcs_unk_1]) {