Fix: no newline when debug msg over DEBUG_BUF_SIZE

Signed-off-by: valord577 <valord577@gmail.com>
This commit is contained in:
valord577 2022-10-31 15:17:37 +08:00 committed by Dave Rodgman
parent 55a701afec
commit 25418ac734

View File

@ -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);
}