Skip to content

Commit

Permalink
Fix: no newline when debug msg over DEBUG_BUF_SIZE
Browse files Browse the repository at this point in the history
Signed-off-by: valord577 <[email protected]>
  • Loading branch information
valord577 authored and daverodgman committed May 16, 2023
1 parent 9febc98 commit afbaac2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ void mbedtls_debug_print_msg(const mbedtls_ssl_context *ssl, int level,
str[ret] = '\n';
str[ret + 1] = '\0';
}
else
{
str[DEBUG_BUF_SIZE - 2] = '\n';
}

debug_send_line(ssl, level, file, line, str);
}
Expand Down

0 comments on commit afbaac2

Please sign in to comment.