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 + 192de85 commit e4b4c45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,21 @@ 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})
find_package(PNG)
if (PNG_FOUND)
set(PNG_ENABLED true)
message(STATUS "libpng found. png support is compiled in at extras.")
find_package(CAIRO)
find_package(Cairo)
if (CAIRO_FOUND)
set(CAIRO_ENABLED true)
message(STATUS "Adding cairo examples.")
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 e4b4c45

Please sign in to comment.