From 1f7fde9436c44a0842897a0e0de2228259a54d4d Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 31 Jul 2008 15:11:44 +0000 Subject: Mantis#1868. Thank you kindly, HomerHorwitz for a patch that: 0001868: llXorBase64StringsCorrect leads to error if second string shorter than first which was an off by one error. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index dadad02..e5c6ac1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -6834,7 +6834,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api ret += src1[i] ^ src2[c]; c++; - if (c > src2.Length) + if (c >= src2.Length) c = 0; } return llStringToBase64(ret); -- cgit v1.1