From 38aad774f7f3470e87f6510c4530684d87c3ad7b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 10 Nov 2015 14:47:36 +0000 Subject: [PATCH] change lldialog and llTextBox maximum message lenght to 512 bytes as specification. --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 41debb34d7..79b37fac81 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -2437,14 +2437,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP // this is the username of the *owner* dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName); dialog.Data.LastName = Util.StringToBytes256(ownerLastName); - dialog.Data.Message = Util.StringToBytes1024(msg); + dialog.Data.Message = Util.StringToBytes(msg,512); dialog.Data.ImageID = textureID; dialog.Data.ChatChannel = ch; ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[buttonlabels.Length]; for (int i = 0; i < buttonlabels.Length; i++) { buttons[i] = new ScriptDialogPacket.ButtonsBlock(); - buttons[i].ButtonLabel = Util.StringToBytes256(buttonlabels[i]); + buttons[i].ButtonLabel = Util.StringToBytes256(buttonlabels[i]); } dialog.Buttons = buttons; @@ -13172,7 +13172,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP // this is the username of the *owner* dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName); dialog.Data.LastName = Util.StringToBytes256(ownerLastName); - dialog.Data.Message = Util.StringToBytes256(message); + dialog.Data.Message = Util.StringToBytes(message,512); ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[1]; buttons[0] = new ScriptDialogPacket.ButtonsBlock();