diff -r ddc77c3b1823 -r 0aeea29ef890 project_files/hwc/rtl/system.c --- 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);