Accept 64 byte length WiFi passwords (#1730)

This commit is contained in:
FrankX 2017-01-17 21:55:30 +01:00 committed by Marcel Stör
parent 305d7c4672
commit a18826ec54
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ static int wifi_station_config( lua_State* L )
memcpy(sta_conf.ssid, ssid, sl); memcpy(sta_conf.ssid, ssid, sl);
const char *password = luaL_checklstring( L, 2, &pl ); const char *password = luaL_checklstring( L, 2, &pl );
luaL_argcheck(L, (pl==0||(pl>=8 && pl<sizeof(sta_conf.password)) ), 2, "length:0 or 8-64"); luaL_argcheck(L, (pl==0||(pl>=8 && pl<=sizeof(sta_conf.password)) ), 2, "length:0 or 8-64");
memcpy(sta_conf.password, password, pl); memcpy(sta_conf.password, password, pl);