From cb1492aaf0aae074753d0d4f5766fa4cd1292536 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Fri, 30 Oct 2009 13:18:18 -0700 Subject: [PATCH] Fixed a regression in SendAvatarGroupsReply() --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index f33d2fa910..e5132493f6 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -2801,9 +2801,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP AvatarGroupsReplyPacket.GroupDataBlock block = new AvatarGroupsReplyPacket.GroupDataBlock(); block.GroupPowers = m.GroupPowers; block.AcceptNotices = m.AcceptNotices; - block.GroupTitle = Util.StringToBytes256(m.GroupTitle.Substring(0, 20)); + block.GroupTitle = Util.StringToBytes256(m.GroupTitle.Length > 20 ? m.GroupTitle.Substring(0, 20) : m.GroupTitle); block.GroupID = m.GroupID; - block.GroupName = Util.StringToBytes256(m.GroupName.Substring(0, 35)); + block.GroupName = Util.StringToBytes256(m.GroupName.Length > 35 ? m.GroupName.Substring(0, 35) : m.GroupName); block.GroupInsigniaID = m.GroupPicture; p.GroupData[i] = block;