Skip to content

Commit

Permalink
Fix compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed May 17, 2021
1 parent 4a08626 commit 0db306e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/websockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ static int callback_http(
static void log_wrap(int level, const char *line)
{
char *l = (char *)line;
UNUSED(level);
l[strlen(line)-1] = '\0'; /* Remove \n */
log__printf(NULL, MOSQ_LOG_WEBSOCKETS, "%s", l);
}
Expand Down

0 comments on commit 0db306e

Please sign in to comment.