From 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:48 -0500 Subject: Second Life viewer sources 1.13.2.15 --- linden/indra/newview/llmutelist.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llmutelist.cpp') diff --git a/linden/indra/newview/llmutelist.cpp b/linden/indra/newview/llmutelist.cpp index 2101e87..fc0046a 100644 --- a/linden/indra/newview/llmutelist.cpp +++ b/linden/indra/newview/llmutelist.cpp @@ -363,6 +363,8 @@ BOOL LLMuteList::loadFromFile(const LLString& filename) return FALSE; } + // *NOTE: Changing the size of these buffers will require changes + // in the scanf below. char id_buffer[MAX_STRING]; char name_buffer[MAX_STRING]; char buffer[MAX_STRING]; @@ -372,7 +374,7 @@ BOOL LLMuteList::loadFromFile(const LLString& filename) id_buffer[0] = '\0'; name_buffer[0] = '\0'; S32 type = 0; - sscanf(buffer, " %d %s %[^|]", &type, id_buffer, name_buffer); + sscanf(buffer, " %d %254s %254[^|]", &type, id_buffer, name_buffer); LLUUID id = LLUUID(id_buffer); LLMute mute(id, name_buffer, (LLMute::EType)type); if (mute.mID.isNull() -- cgit v1.1