Fix off by one when finding HaxeObject; JNI string

This PR fixes an off by one in `strncmp(src,"org/haxe/lime/HaxeObject;", 24)` call. The string literal `"org/haxe/lime/HaxeObject;"` has a length of 25 and so the current implementation would also match e.g. `"org/haxe/lime/HaxeObjectSOMETHING;"` strings.
This commit is contained in:
Disconnect3d
2020-04-13 16:18:41 +02:00
committed by Joshua Granick
parent fcac041024
commit d9b35012f4

View File

@@ -931,7 +931,7 @@ namespace lime {
outType = JNIType (jniObjectString, inDepth);
} else if (!strncmp(src,"org/haxe/lime/HaxeObject;", 24)) {
} else if (!strncmp(src,"org/haxe/lime/HaxeObject;", 25)) {
outType = JNIType (jniObjectHaxe, inDepth);
@@ -2111,4 +2111,4 @@ extern "C" {
}
}
}