diff options
author | uruk | 2014-08-11 20:43:08 +0200 |
---|---|---|
committer | uruk | 2014-08-11 20:43:08 +0200 |
commit | ae037b23153d60b19c95960c0c6e1e1ee61a906b (patch) | |
tree | 0e14faa839ac309295caeacba22c4576557c8395 /engines | |
parent | e488da5757a44fed4fda5c15fb8ab4f37e0ee350 (diff) | |
download | scummvm-rg350-ae037b23153d60b19c95960c0c6e1e1ee61a906b.tar.gz scummvm-rg350-ae037b23153d60b19c95960c0c6e1e1ee61a906b.tar.bz2 scummvm-rg350-ae037b23153d60b19c95960c0c6e1e1ee61a906b.zip |
CGE2: Use snprintf() instead of sprintf().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cge2/cge2_main.cpp | 2 | ||||
-rw-r--r-- | engines/cge2/text.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index 7900eefb86..7c4a111d1f 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -387,7 +387,7 @@ void CGE2Engine::movie(const char *ext) { return; char fn[12]; - sprintf(fn, "CGE%s", ext); + snprintf(fn, 12, "CGE%s", ext); if (_resman->exist(fn)) { int now = _now; diff --git a/engines/cge2/text.cpp b/engines/cge2/text.cpp index 1da310ccbd..d51c04843d 100644 --- a/engines/cge2/text.cpp +++ b/engines/cge2/text.cpp @@ -190,7 +190,7 @@ void Text::sayTime(Sprite *spr) { _vm->_system->getTimeAndDate(curTime); char t[6]; - sprintf(t, "%d:%02d", curTime.tm_hour, curTime.tm_min); + snprintf(t, 6, "%d:%02d", curTime.tm_hour, curTime.tm_min); say(t, spr); } |