a few typos

This commit is contained in:
UbitUmarov
2021-09-01 16:37:28 +01:00
parent c77fa98640
commit af4dacee53
5 changed files with 10 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ namespace OSHttpServer
/// </summary>
public class HttpRequest : IHttpRequest
{
private const int MAXCONTENTLENGHT = 250 * 1024 * 1024;
private const int MAXCONTENTLENGTH = 250 * 1024 * 1024;
/// <summary>
/// Chars used to split an URL path into multiple parts.
/// </summary>
@@ -341,7 +341,7 @@ namespace OSHttpServer
case "content-length":
if (!int.TryParse(value, out int t))
throw new BadRequestException("Invalid content length.");
if (t > MAXCONTENTLENGHT)
if (t > MAXCONTENTLENGTH)
throw new OSHttpServer.Exceptions.HttpException(HttpStatusCode.RequestEntityTooLarge,"Request Entity Too Large");
ContentLength = t;
break;

View File

@@ -2723,10 +2723,10 @@ namespace OpenSim.Framework
}
}
public static unsafe int osUTF8Getbytes(char* srcarray, int srclenght, byte* dstarray, int maxdstlen, bool NullTerm = true)
public static unsafe int osUTF8Getbytes(char* srcarray, int srclength, byte* dstarray, int maxdstlen, bool NullTerm = true)
{
int dstlen = NullTerm ? maxdstlen - 1 : maxdstlen;
int srclen = srclenght >= dstlen ? dstlen : srclenght;
int srclen = srclength >= dstlen ? dstlen : srclength;
char c;
char* src = srcarray;

View File

@@ -1650,7 +1650,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//finish this packet
bitpack.PackBitsFromByte(END_OF_PATCHES);
// fix the datablock lenght
// fix the datablock length
datasize = bitpack.BytePos - 9;
data[8] = (byte)datasize;
data[9] = (byte)(datasize >> 8);

View File

@@ -4847,13 +4847,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// </summary>
/// <param name="Mass">total mass of linkset</param>
/// <param name="radius">radius of the cylinder</param>
/// <param name="lenght">lenght of the cylinder</param>
/// <param name="length">length of the cylinder</param>
/// <param name="centerOfMass">location of center of mass relative to root prim in local coords</param>
/// <param name="lslrot">rotation of the cylinder, and so inertia, relative to local axis</param>
/// <remarks>
/// cylinder axis aligned with Z axis. For other orientations provide the rotation.
/// </remarks>
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, LSL_Vector centerOfMass, LSL_Rotation lslrot)
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float length, LSL_Vector centerOfMass, LSL_Rotation lslrot)
{
CheckThreatLevel();
@@ -4872,7 +4872,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
float r = (float)radius;
r *= r;
Inertia.Z = 0.5f * m * r;
float t = (float)lenght;
float t = (float)length;
t *= t;
t += 3.0f * r;
t *= 8.333333e-2f * m;

View File

@@ -1212,9 +1212,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
m_OSSL_Functions.osSetInertiaAsSphere(mass, radius, centerOfMass);
}
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot)
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float length, vector centerOfMass,rotation lslrot)
{
m_OSSL_Functions.osSetInertiaAsCylinder( mass, radius, lenght, centerOfMass, lslrot);
m_OSSL_Functions.osSetInertiaAsCylinder( mass, radius, length, centerOfMass, lslrot);
}
public void osClearInertia()