Ticket #9216: scummvm-overflow.patch
File scummvm-overflow.patch, 1.3 KB (added by , 14 years ago) |
---|
-
engines/agi/predictive.cpp
old new bool AgiEngine::predictiveDialog() { 461 461 } 462 462 463 463 press: 464 strncpy(_predictiveResult, prefix.c_str(), 40); 465 strncat(_predictiveResult, _currentWord.c_str(), 40); 466 _predictiveResult[prefix.size() + _currentCode.size() + 1] = 0; 464 strncpy(_predictiveResult, prefix.c_str(), sizeof(_predictiveResult)); 465 _predictiveResult[sizeof(_predictiveResult) - 1]= 0; 466 strncat(_predictiveResult, _currentWord.c_str(), sizeof(_predictiveResult)-strlen(_predictiveResult)-1); 467 _predictiveResult[prefix.size() + _currentCode.size()] = 0; 467 468 468 469 getout: 469 470 // if another window was shown, bring it up again -
engines/parallaction/balloons.cpp
old new class BalloonManager_ns : public Balloon 248 248 Parallaction_ns *_vm; 249 249 static int16 _dialogueBalloonX[5]; 250 250 251 byte _textColors[ 2];251 byte _textColors[3]; 252 252 253 253 struct Balloon { 254 254 Common::Rect outerBox; … … public: 530 530 class BalloonManager_br : public BalloonManager { 531 531 532 532 Parallaction_br *_vm; 533 byte _textColors[ 2];533 byte _textColors[3]; 534 534 535 535 struct Balloon { 536 536 Common::Rect box;