Commit a18826ec authored by FrankX's avatar FrankX Committed by Marcel Stör
Browse files

Accept 64 byte length WiFi passwords (#1730)

parent 305d7c46
...@@ -737,7 +737,7 @@ static int wifi_station_config( lua_State* L ) ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment