forked from wolfSSL/wolfssl
examples/: fix undersized array lengths in client_usage_msg and server_usage_msg.
This commit is contained in:
@@ -928,10 +928,11 @@ static int ClientRead(WOLFSSL* ssl, char* reply, int replyLen, int mustRead,
|
|||||||
/* when adding new option, please follow the steps below: */
|
/* when adding new option, please follow the steps below: */
|
||||||
/* 1. add new option message in English section */
|
/* 1. add new option message in English section */
|
||||||
/* 2. increase the number of the second column */
|
/* 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) */
|
/* (will be translated later) */
|
||||||
/* 4. add printf() into suitable position of Usage() */
|
/* 5. add printf() into suitable position of Usage() */
|
||||||
static const char* client_usage_msg[][59] = {
|
static const char* client_usage_msg[][66] = {
|
||||||
/* English */
|
/* English */
|
||||||
{
|
{
|
||||||
" NOTE: All files relative to wolfSSL home dir\n", /* 0 */
|
" NOTE: All files relative to wolfSSL home dir\n", /* 0 */
|
||||||
|
@@ -540,10 +540,11 @@ static void ServerWrite(WOLFSSL* ssl, const char* output, int outputLen)
|
|||||||
/* when adding new option, please follow the steps below: */
|
/* when adding new option, please follow the steps below: */
|
||||||
/* 1. add new option message in English section */
|
/* 1. add new option message in English section */
|
||||||
/* 2. increase the number of the second column */
|
/* 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) */
|
/* (will be translated later) */
|
||||||
/* 4. add printf() into suitable position of Usage() */
|
/* 5. add printf() into suitable position of Usage() */
|
||||||
static const char* server_usage_msg[][49] = {
|
static const char* server_usage_msg[][56] = {
|
||||||
/* English */
|
/* English */
|
||||||
{
|
{
|
||||||
" NOTE: All files relative to wolfSSL home dir\n", /* 0 */
|
" NOTE: All files relative to wolfSSL home dir\n", /* 0 */
|
||||||
|
Reference in New Issue
Block a user