Skip to content

Commit

Permalink
Update wsclient.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis authored Sep 28, 2023
1 parent a96a6f1 commit b68bfa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/wsclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ websocket_client::websocket_client(const std::string &hostname, const std::strin
data_opcode(opcode)
{
key = std::to_string(time(nullptr));
key = base64_encode(key.c_str(), key.length());
key = base64_encode((const unsigned char*)key.c_str(), key.length());

Check notice on line 47 in src/dpp/wsclient.cpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/dpp/wsclient.cpp#L47

C-style pointer casting
}

void websocket_client::connect()
Expand Down

0 comments on commit b68bfa4

Please sign in to comment.