Prevent an overlong description from messing up a ParcelInfoReply

avinationmerge
Melanie 2012-01-28 20:38:50 +01:00
parent 6fbc48ee9c
commit dac826da4e
1 changed files with 1 additions and 1 deletions

View File

@ -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?