Skip to content

Commit

Permalink
Well that's definitely not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Jul 3, 2024
1 parent 124cacb commit 933b984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebSocketProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static bool isValidUtf8(unsigned char *s, size_t length)
for (unsigned char *e = s + length; s != e; ) {
if (s + 16 <= e) {
uint64_t tmp[2];
memcpy(&tmp, s, 16);
memcpy(tmp, s, 16);
if (((tmp[0] & 0x8080808080808080) | (tmp[1] & 0x8080808080808080)) == 0) {
s += 16;
continue;
Expand Down

0 comments on commit 933b984

Please sign in to comment.