project_files/hwc/rtl/system.c
changeset 14164 0aeea29ef890
parent 13925 7173b702e8db
child 14173 5c6f947c342c
--- a/project_files/hwc/rtl/system.c	Wed Nov 07 17:45:20 2018 +0100
+++ b/project_files/hwc/rtl/system.c	Wed Nov 07 19:43:17 2018 +0100
@@ -275,6 +275,8 @@
         return 0;
     }
 
+    FIX_STRINGA(str);
+
     p = strchr(str.s + 1, c);
 
     if (p == NULL) {
@@ -298,6 +300,8 @@
     }
 
     FIX_STRING(substr);
+    FIX_STRINGA(str);
+
     str.s[str.len] = 0;
 
     p = strstr(str.s + 1, substr.str);