Fix a typo in previouis commit: start must not pass the end of the file

viewer-2-initial-appearance
Latif Khalifa 2010-10-09 18:22:21 +02:00
parent aeecdd1430
commit 0dd4071156
1 changed files with 2 additions and 2 deletions

View File

@ -187,9 +187,9 @@ namespace OpenSim.Region.CoreModules.Avatar.ObjectCaps
int start, end;
if (TryParseRange(range, out start, out end))
{
// Before clamping end make sure we can satisfy it in order to avoid
// Before clamping start make sure we can satisfy it in order to avoid
// sending back the last byte instead of an error status
if (end >= texture.Data.Length)
if (start >= texture.Data.Length)
{
response.StatusCode = (int)System.Net.HttpStatusCode.RequestedRangeNotSatisfiable;
return;