mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
update libomv and apply necessary related changes
This commit is contained in:
@@ -352,11 +352,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
AddBytes(data, len);
|
||||
}
|
||||
|
||||
// maxlen <= 255 and includes null termination byte, maxchars == max len of utf16 source
|
||||
// maxlen <= 254 because null termination byte
|
||||
public unsafe void AddShortLimitedUTF8(osUTF8 str)
|
||||
{
|
||||
if(str == null)
|
||||
{
|
||||
AddZeros(1);
|
||||
return;
|
||||
}
|
||||
|
||||
int len = str.Length;
|
||||
if (str.Length == 0)
|
||||
if (len == 0)
|
||||
{
|
||||
AddZeros(1);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user