Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
}
else
{
rc = FreeRTOS_inet_pton( FREERTOS_AF_INET4, configECHO_SERVER_ADDR_STRING, ( void * ) xEchoServerAddress.sin_address.xIP_IPv6.ucBytes );
rc = FreeRTOS_inet_pton( FREERTOS_AF_INET4, configECHO_SERVER_ADDR_STRING, ( void * ) &( xEchoServerAddress.sin_address.ulIP_IPv4 ) );
configASSERT( rc == pdPASS );
xFamily = FREERTOS_AF_INET4;
}
Expand Down
3 changes: 3 additions & 0 deletions FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ BaseType_t FreeRTOS_CLIProcessCommand( const char * const pcCommandInput,
/* The command was found, but the number of parameters with the command
* was incorrect. */
strncpy( pcWriteBuffer, "Incorrect command parameter(s). Enter \"help\" to view a list of available commands.\r\n\r\n", xWriteBufferLen );
pcWriteBuffer[ xWriteBufferLen - 1 ] = '\0';
pxCommand = NULL;
}
else if( pxCommand != NULL )
Expand All @@ -220,6 +221,7 @@ BaseType_t FreeRTOS_CLIProcessCommand( const char * const pcCommandInput,
{
/* pxCommand was NULL, the command was not found. */
strncpy( pcWriteBuffer, "Command not recognised. Enter 'help' to view a list of available commands.\r\n\r\n", xWriteBufferLen );
pcWriteBuffer[ xWriteBufferLen - 1 ] = '\0';
xReturn = pdFALSE;
}

Expand Down Expand Up @@ -340,6 +342,7 @@ static BaseType_t prvHelpCommand( char * pcWriteBuffer,
/* Return the next command help string, before moving the pointer on to
* the next command in the list. */
strncpy( pcWriteBuffer, pxCommand->pxCommandLineDefinition->pcHelpString, xWriteBufferLen );
pcWriteBuffer[ xWriteBufferLen - 1 ] = '\0';
pxCommand = pxCommand->pxNext;

if( pxCommand == NULL )
Expand Down
Loading