diff -r a239e4243cf9 -r 73d514c0bdf5 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); }