Fix fpcrtl_strcompare broken in previous commit
authorunc0rr
Tue, 20 Nov 2018 19:43:00 +0100
changeset 14278 8c76c0a35fb1
parent 14277 73d514c0bdf5
child 14279 2bfadefae9bb
Fix fpcrtl_strcompare broken in previous commit
project_files/hwc/rtl/misc.c
--- a/project_files/hwc/rtl/misc.c	Tue Nov 20 18:35:39 2018 +0100
+++ b/project_files/hwc/rtl/misc.c	Tue Nov 20 19:43:00 2018 +0100
@@ -108,7 +108,7 @@
 
 bool fpcrtl_strcompare(string255 str1, string255 str2)
 {
-    return memcmp(str1.str, str2.str, str1.len) == 0;
+    return memcmp(str1.s, str2.s, str1.len + 1) == 0;
 }
 
 bool fpcrtl_strcomparec(string255 a, char b)