Skip to content

Commit

Permalink
FULLPIPE: Avoid buffer overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 28, 2016
1 parent ce68118 commit 9e5ddfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/fullpipe/behavior.cpp
Expand Up @@ -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();

Expand Down

0 comments on commit 9e5ddfe

Please sign in to comment.