From a734ae1ec5b3c9be6b34a8c33dbe268ea36b6bc2 Mon Sep 17 00:00:00 2001 From: Maximilian Rehkopf Date: Fri, 18 Oct 2013 15:30:08 +0200 Subject: [PATCH] pamper the compiler --- src/filetypes.c | 2 +- src/tests/cli.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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