No, it doesn't seem legit
authorunc0rr
Tue, 20 Nov 2018 18:35:39 +0100
changeset 14261 73d514c0bdf5
parent 14260 a239e4243cf9
child 14262 8c76c0a35fb1
No, it doesn't seem legit
project_files/hwc/rtl/misc.c
--- a/project_files/hwc/rtl/misc.c	Tue Nov 20 16:56:24 2018 +0100
+++ b/project_files/hwc/rtl/misc.c	Tue Nov 20 18:35:39 2018 +0100
@@ -108,7 +108,7 @@
 
 bool fpcrtl_strcompare(string255 str1, string255 str2)
 {
-    return memcmp(str1.s, str2.s, str1.len + 1) == 0;
+    return memcmp(str1.str, str2.str, str1.len) == 0;
 }
 
 bool fpcrtl_strcomparec(string255 a, char b)
@@ -127,7 +127,7 @@
 
 bool fpcrtl_strncompareA(astring a, astring b)
 {
-    return (a.len != b.len) || (memcmp(a.s, b.s, a.len) != 0);
+    return (a.len != b.len) || (memcmp(a.str, b.str, a.len) != 0);
 }