diff --git a/src/parse.hpp b/src/parse.hpp index 7b36aaa..ec31340 100644 --- a/src/parse.hpp +++ b/src/parse.hpp @@ -69,7 +69,7 @@ static ret_value get_fn(const char* fn_name, program_fn_t& fn, cmd_type_t& type) unsigned int i = 0; while(s_keywords[i].type != cmd_max) { - if (strncmp(fn_name, s_keywords[i].name, sizeof(s_keywords[i].name)) == 0) + if (strncasecmp(fn_name, s_keywords[i].name, sizeof(s_keywords[i].name)) == 0) { fn = s_keywords[i].fn; type = s_keywords[i].type; diff --git a/src/program.hpp b/src/program.hpp index b650ba0..c5481f7 100644 --- a/src/program.hpp +++ b/src/program.hpp @@ -169,7 +169,7 @@ public: bool compare_branch(branch* b, const char* str_to_compare, int len) { if (b->_len >= len) - return strncmp(b->_value, str_to_compare, len) == 0; + return strncasecmp(b->_value, str_to_compare, len) == 0; else return false; }