mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Fix: no newline when debug msg over DEBUG_BUF_SIZE
Signed-off-by: valord577 <valord577@gmail.com>
This commit is contained in:
parent
55a701afec
commit
25418ac734
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue