Skip to content

Commit

Permalink
Fixes #206
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragagarwal561994 committed Aug 18, 2016
1 parent dcbdce5 commit ec1c9ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/01-internal/14-websockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void t02_websocket_server_w_ws(){
void t03_websocket_server_receive_small_packet(){
INIT_LOCAL();
int length = 0;
char *buffer = NULL, buffer2[114];
char *buffer = NULL, buffer2[115];
memset(&ws_status,0,sizeof(ws_status));
onion *o=websocket_server_new();
onion_request *req=websocket_start_handshake(o);
Expand All @@ -201,7 +201,7 @@ void t03_websocket_server_receive_small_packet(){

onion_websocket_read(ws, (char *)&buffer2, 120);

buffer2[113] = '\0';
buffer2[114] = '\0';
FAIL_IF_NOT_EQUAL_STR(buffer2, "Some UTF-8-encoded chars which will be cut at the 117th char so I write some gap-filling text with no meaning unti");

onion_websocket_free(ws);
Expand Down

0 comments on commit ec1c9ea

Please sign in to comment.