examples/: fix undersized array lengths in client_usage_msg and server_usage_msg.

This commit is contained in:
Daniel Pouzzner 2020-09-17 22:09:51 -05:00
parent 8a6216363d
commit 10bf7a2086
2 changed files with 8 additions and 6 deletions

View File

@ -928,10 +928,11 @@ static int ClientRead(WOLFSSL* ssl, char* reply, int replyLen, int mustRead,
/* when adding new option, please follow the steps below: */
/* 1. add new option message in English section */
/* 2. increase the number of the second column */
/* 3. add the same message into Japanese section */
/* 3. increase the array dimension */
/* 4. add the same message into Japanese section */
/* (will be translated later) */
/* 4. add printf() into suitable position of Usage() */
static const char* client_usage_msg[][59] = {
/* 5. add printf() into suitable position of Usage() */
static const char* client_usage_msg[][66] = {
/* English */
{
" NOTE: All files relative to wolfSSL home dir\n", /* 0 */

View File

@ -540,10 +540,11 @@ static void ServerWrite(WOLFSSL* ssl, const char* output, int outputLen)
/* when adding new option, please follow the steps below: */
/* 1. add new option message in English section */
/* 2. increase the number of the second column */
/* 3. add the same message into Japanese section */
/* 3. increase the array dimension */
/* 4. add the same message into Japanese section */
/* (will be translated later) */
/* 4. add printf() into suitable position of Usage() */
static const char* server_usage_msg[][49] = {
/* 5. add printf() into suitable position of Usage() */
static const char* server_usage_msg[][56] = {
/* English */
{
" NOTE: All files relative to wolfSSL home dir\n", /* 0 */