diff --git a/src/filetypes.c b/src/filetypes.c index 6df3d5a..7ada5c0 100644 --- a/src/filetypes.c +++ b/src/filetypes.c @@ -152,7 +152,7 @@ uint32_t scan_dir(char* path, FILINFO* fno_param, char mkdb, uint32_t this_dir_t break; } fn = *fno.lfname ? fno.lfname : fno.fname; - if ((*fn == '.') || !(strncasecmp(fn, SYS_DIR_NAME, sizeof(SYS_DIR_NAME)))) continue; + if ((*fn == '.') || !(strncasecmp(fn, SYS_DIR_NAME, strlen(SYS_DIR_NAME)+1))) continue; if (fno.fattrib & AM_DIR) { depth++; if(depth < FS_MAX_DEPTH) { diff --git a/src/tests/cli.c b/src/tests/cli.c index 57af456..47a2df2 100644 --- a/src/tests/cli.c +++ b/src/tests/cli.c @@ -138,7 +138,7 @@ static int8_t parse_wordlist(char *wordlist) { return -1; } - if (tolower(c) != tolower(*cur)) { + if (tolower((int)c) != tolower((int)*cur)) { // Check for end-of-word if (cur != curchar && (*cur == ' ' || *cur == 0)) { // Partial match found, return that