mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-12-12 14:06:19 +08:00
Add CBMC proofs for FreeRTOS-Plus-CLI (#296)
This commit is contained in:
committed by
GitHub
parent
de502afcb2
commit
1fc1bd4321
@@ -165,9 +165,9 @@ size_t xCommandStringLength;
|
||||
a sub-string of a longer command, check the byte after the expected
|
||||
end of the string is either the end of the string or a space before
|
||||
a parameter. */
|
||||
if( ( pcCommandInput[ xCommandStringLength ] == ' ' ) || ( pcCommandInput[ xCommandStringLength ] == 0x00 ) )
|
||||
if( strncmp( pcCommandInput, pcRegisteredCommandString, xCommandStringLength ) == 0 )
|
||||
{
|
||||
if( strncmp( pcCommandInput, pcRegisteredCommandString, xCommandStringLength ) == 0 )
|
||||
if( ( pcCommandInput[ xCommandStringLength ] == ' ' ) || ( pcCommandInput[ xCommandStringLength ] == 0x00 ) )
|
||||
{
|
||||
/* The command has been found. Check it has the expected
|
||||
number of parameters. If cExpectedNumberOfParameters is -1,
|
||||
|
||||
Reference in New Issue
Block a user