We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8af4ce commit cea5842Copy full SHA for cea5842
1 file changed
websocket_parser.c
@@ -185,5 +185,5 @@ uint8_t websocket_decode(char * dst, const char * src, size_t len, char mask[4],
185
dst[i] = src[i] ^ mask[(i + mask_offset) % 4];
186
}
187
188
- return (uint8_t) ((i + mask_offset + 1) % 4);
+ return (uint8_t) ((i + mask_offset) % 4);
189
0 commit comments