From adda0ab7d8e398d3619b8acad3237fee1f49a62a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 11 Nov 2015 05:55:34 +0000 Subject: limit llDialog buttons text to 24 bytes (at lludp level) --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 757abd4..62206e9 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -2444,7 +2444,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP for (int i = 0; i < buttonlabels.Length; i++) { buttons[i] = new ScriptDialogPacket.ButtonsBlock(); - buttons[i].ButtonLabel = Util.StringToBytes256(buttonlabels[i]); + buttons[i].ButtonLabel = Util.StringToBytes(buttonlabels[i],24); } dialog.Buttons = buttons; -- cgit v1.1