Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
a18826ec
Commit
a18826ec
authored
Jan 17, 2017
by
FrankX
Committed by
Marcel Stör
Jan 17, 2017
Browse files
Accept 64 byte length WiFi passwords (#1730)
parent
305d7c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
a18826ec
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment