Skip to content

Commit

Permalink
Merge branch 'master' into darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragagarwal561994 committed Aug 18, 2016
2 parents 2693ba2 + ec1c9ea commit cc5401b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ if (${ONION_USE_XML2})
endif(${ONION_USE_XML2})

if (${ONION_USE_PAM})
find_library(PAM_LIB NAMES pam PATH ${LIBPATH})
if (PAM_LIB)
find_package(PAM)
if (PAM_FOUND)
set(PAM_ENABLED true)
message(STATUS "pam found. PAM support is compiled in in handlers.")
else (PAM_LIB)
message("pam not found. No PAM support.")
endif (PAM_LIB)
message(STATUS "PAM support is compiled in handlers.")
else (PAM_FOUND)
message("No PAM support.")
endif (PAM_FOUND)
endif (${ONION_USE_PAM})

if (${ONION_USE_PNG})
Expand Down
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 cc5401b

Please sign in to comment.