Skip to content

Commit 12d618f

Browse files
authored
Merge branch 'master' into feature/ipaddress-v6-support
2 parents fecde01 + 71b1d76 commit 12d618f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/WebServer/src/WebServer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ bool WebServer::authenticate(const char * username, const char * password){
135135
authReq = authReq.substring(6);
136136
authReq.trim();
137137
char toencodeLen = strlen(username)+strlen(password)+1;
138-
char *toencode = (char *)malloc[toencodeLen + 1];
138+
char *toencode = (char *)malloc(toencodeLen + 1);
139139
if(toencode == NULL){
140140
authReq = "";
141141
return false;

0 commit comments

Comments
 (0)