Merge branch 'develop' into feature/add_tests_#5
This commit is contained in:
		@@ -228,8 +228,13 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t     handle,
 | 
				
			|||||||
                /** -# search for a matching command */
 | 
					                /** -# search for a matching command */
 | 
				
			||||||
                while (NULL != cmd)
 | 
					                while (NULL != cmd)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (    (0 == strcmp(inst->buffer, cmd->cmd))
 | 
					                    /* only compare the length of the command -1 (to avoid comparing the \0 */
 | 
				
			||||||
                        ||  (0 == strcmp(inst->buffer, cmd->cmdAlias)))
 | 
					                    if (    (0 == strncmp(  inst->buffer,
 | 
				
			||||||
 | 
					                                            cmd->cmd,
 | 
				
			||||||
 | 
					                                            strlen(cmd->cmd)))
 | 
				
			||||||
 | 
					                        ||  (0 == strncmp(  inst->buffer,
 | 
				
			||||||
 | 
					                                            cmd->cmdAlias,
 | 
				
			||||||
 | 
					                                            strlen(cmd->cmdAlias))))
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        inst->write("\r\n", 2u);
 | 
					                        inst->write("\r\n", 2u);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user