diff options
author | Mike Mazur | 2008-07-16 01:19:32 +0000 |
---|---|---|
committer | Mike Mazur | 2008-07-16 01:19:32 +0000 |
commit | 18aa58c63bc1551ab179ac4d4b3f1541d7c1837a (patch) | |
tree | c4f01eace482d1d6b13f6388887def0f9da5c22e /OpenSim/Region/ScriptEngine | |
parent | Mantis#1753. Thank you kindly, Kinoc for a patch that: (diff) | |
download | opensim-SC_OLD-18aa58c63bc1551ab179ac4d4b3f1541d7c1837a.zip opensim-SC_OLD-18aa58c63bc1551ab179ac4d4b3f1541d7c1837a.tar.gz opensim-SC_OLD-18aa58c63bc1551ab179ac4d4b3f1541d7c1837a.tar.bz2 opensim-SC_OLD-18aa58c63bc1551ab179ac4d4b3f1541d7c1837a.tar.xz |
Fix issue 1582. The maximum allowable length for a string passed to SimChat is 1500. If it was longer than 1500, it was being truncated to 1501 characters. This caused an exception and prevented the errors from reaching the console and the user in-world.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index ed20cd2..42d9bf8 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | |||
@@ -152,7 +152,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
152 | // DISPLAY ERROR INWORLD | 152 | // DISPLAY ERROR INWORLD |
153 | string text = "Error compiling script:\r\n" + e.Message.ToString(); | 153 | string text = "Error compiling script:\r\n" + e.Message.ToString(); |
154 | if (text.Length > 1500) | 154 | if (text.Length > 1500) |
155 | text = text.Substring(0, 1500); | 155 | text = text.Substring(0, 1499); // 0-1499 is 1500 characters |
156 | World.SimChat(Helpers.StringToField(text), ChatTypeEnum.DebugChannel, 2147483647, | 156 | World.SimChat(Helpers.StringToField(text), ChatTypeEnum.DebugChannel, 2147483647, |
157 | m_host.AbsolutePosition, m_host.Name, m_host.UUID, false); | 157 | m_host.AbsolutePosition, m_host.Name, m_host.UUID, false); |
158 | } | 158 | } |