Document tolerance for non-null terminated strings
@@ -58,6 +58,7 @@ public static String fromUTF8ByteArray(byte[] bytes)
public static String fromNullTerminatedUTF8ByteArray(byte[] bytes)
{
+ // Tolerate strings which are non-null terminated
if (bytes[bytes.length - 1] != 0)
{
return fromUTF8ByteArray(bytes);
