Fix buffer overflow; found by Drake Arconis (Alchemy Viewer)

meow-7.2.2
Ansariel 2016-11-16 20:42:20 +01:00
parent 3348ec4f75
commit 79b8277d49
1 changed files with 1 additions and 1 deletions

View File

@ -4686,7 +4686,7 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
sdQuery["name"] = chat.mFromName;
sdQuery["owner"] = owner_id;
if ( (!RlvActions::canShowName(RlvActions::SNC_COUNT, owner_id)) && (!is_owned_by_me) )
if ( (!RlvActions::canShowName(RlvActions::SNC_DEFAULT, owner_id)) && (!is_owned_by_me) )
sdQuery["rlv_shownames"] = true;
const LLViewerRegion* pRegion = LLWorld::getInstance()->getRegionFromPosAgent(chat.mPosAgent);