project_files/hwc/rtl/misc.c
changeset 14257 8c76c0a35fb1
parent 14256 73d514c0bdf5
child 15292 70d416a8f63f
--- 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)