Oops, should stop coding at night
authorunc0rr
Wed, 14 May 2014 01:12:21 +0400
changeset 10242 0ab0d7fa1c62
parent 10241 2dc9ff47c5b9
child 10243 9a3ba4e76e38
Oops, should stop coding at night
project_files/hwc/rtl/misc.c
--- a/project_files/hwc/rtl/misc.c	Wed May 14 01:07:43 2014 +0400
+++ b/project_files/hwc/rtl/misc.c	Wed May 14 01:12:21 2014 +0400
@@ -127,7 +127,7 @@
 
 bool fpcrtl_strncompareA(astring a, astring b)
 {
-    return (a.len != b.len) || (memcmp(a.s, b.s, a.len + 1) != 0);
+    return (a.len != b.len) || (memcmp(a.s, b.s, a.len) != 0);
 }