mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
ooops
This commit is contained in:
@@ -6703,7 +6703,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
int end = lend.value;
|
||||
if (end < 0)
|
||||
{
|
||||
end += src.Length;
|
||||
end += srclen;
|
||||
if (end < 0)
|
||||
return -1;
|
||||
end -= testlen - 1;
|
||||
|
||||
@@ -6668,7 +6668,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (start < 0)
|
||||
return -1;
|
||||
}
|
||||
else if (start >= src.Length)
|
||||
else if (start >= srclen)
|
||||
return -1;
|
||||
|
||||
int end = lend.value;
|
||||
|
||||
Reference in New Issue
Block a user