diff options
author | Eugene Sandulenko | 2016-08-28 13:37:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-28 13:37:58 +0200 |
commit | 9e5ddfee1d3741af0a5e8ad4c39aeb9c86aea22a (patch) | |
tree | ee2d3c2b8d63cc0eb82e89795592e1bffbb9767f | |
parent | ce681189e8b2e43db269465870651097cddad9be (diff) | |
download | scummvm-rg350-9e5ddfee1d3741af0a5e8ad4c39aeb9c86aea22a.tar.gz scummvm-rg350-9e5ddfee1d3741af0a5e8ad4c39aeb9c86aea22a.tar.bz2 scummvm-rg350-9e5ddfee1d3741af0a5e8ad4c39aeb9c86aea22a.zip |
FULLPIPE: Avoid buffer overwrite
-rw-r--r-- | engines/fullpipe/behavior.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp index 0c0556b7fa..f4cbc2b8c8 100644 --- a/engines/fullpipe/behavior.cpp +++ b/engines/fullpipe/behavior.cpp @@ -267,7 +267,8 @@ void BehaviorInfo::initAmbientBehavior(GameVar *var, Scene *sc) { } void BehaviorInfo::initObjectBehavior(GameVar *var, Scene *sc, StaticANIObject *ani) { - debugC(4, kDebugBehavior, "BehaviorInfo::initObjectBehavior(%s, %d, %s)", transCyrillic((byte *)var->_varName), sc->_sceneId, transCyrillic((byte *)ani->_objectName)); + Common::String s((char *)transCyrillic((byte *)var->_varName)); + debugC(4, kDebugBehavior, "BehaviorInfo::initObjectBehavior(%s, %d, %s)", s.c_str(), sc->_sceneId, transCyrillic((byte *)ani->_objectName)); clear(); |