From dac826da4ea2e1208f420a1fbf652417f858a8c1 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 28 Jan 2012 20:38:50 +0100 Subject: [PATCH] Prevent an overlong description from messing up a ParcelInfoReply --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index bbaa08ef03..a50a61d43a 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -2766,7 +2766,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP reply.Data.ParcelID = parcelID; reply.Data.OwnerID = land.OwnerID; reply.Data.Name = Utils.StringToBytes(land.Name); - reply.Data.Desc = Utils.StringToBytes(land.Description); + reply.Data.Desc = Utils.StringToBytes(land.Description.Substring(0, land.Description.Length > 254 ? 254: land.Description.Length)); reply.Data.ActualArea = land.Area; reply.Data.BillableArea = land.Area; // TODO: what is this?