diff --git a/components/msh/msh.c b/components/msh/msh.c index f0f3453..bb3a07c 100644 --- a/components/msh/msh.c +++ b/components/msh/msh.c @@ -235,7 +235,7 @@ MR_INLINE void msh_parse_cmd(void) for (const struct mr_msh_cmd *msh_cmd = ((&_mr_msh_cmd_start) + 1); msh_cmd < &_mr_msh_cmd_end; msh_cmd++) { - if (strncmp(msh_cmd->name, msh.buf, strlen(msh_cmd->name)) != 0) { + if (strcmp(msh_cmd->name, msh.buf) != 0) { continue; }