Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion subsys/net/lib/websocket/websocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ int websocket_connect(int sock, struct websocket_request *wreq,
key_len);

olen = MIN(sizeof(key_accept) - 1 - key_len, sizeof(WS_MAGIC) - 1);
strncpy(key_accept + key_len, WS_MAGIC, olen);
memcpy(key_accept + key_len, WS_MAGIC, olen);

/* This SHA-1 value is then checked when we receive the response */
#ifdef CONFIG_MBEDTLS_PSA_CRYPTO_CLIENT
Expand Down