Hotfix: Fix those buffer sizes

This commit is contained in:
Michael Smith 2018-03-13 19:32:56 +01:00
parent 3f8ef38ec5
commit 61044fe751
4 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,7 @@
#ifndef _USER_CONFIG_ #ifndef _USER_CONFIG_
#define _USER_CONFIG_ #define _USER_CONFIG_
#define ESPERPASS_VERSION "V0.0.3" #define ESPERPASS_VERSION "V0.0.4"
#define WIFI_SSID "ssid" #define WIFI_SSID "ssid"
#define WIFI_PASSWORD "password" #define WIFI_PASSWORD "password"

View File

@ -816,7 +816,7 @@ console_handle_command(struct espconn *pespconn)
// to get the full ssid name. // to get the full ssid name.
if (nTokens > 3) if (nTokens > 3)
{ {
char ssid[50] = {}; char ssid[32] = {};
int i; int i;
// The ssid starts at the 3rd token, position 2 in the tokens // The ssid starts at the 3rd token, position 2 in the tokens
@ -855,7 +855,7 @@ console_handle_command(struct espconn *pespconn)
// to get the full password. // to get the full password.
if (nTokens > 3) if (nTokens > 3)
{ {
char password[50] = {}; char password[64] = {};
int i; int i;
// The password starts at the 3rd token, position 2 in the tokens // The password starts at the 3rd token, position 2 in the tokens