commit | afbaac29e89ff5e538b76c925304ec2f581bf51a | [log] [tgz] |
---|---|---|
author | valord577 <valord577@gmail.com> | Mon Oct 31 15:17:37 2022 +0800 |
committer | Dave Rodgman <dave.rodgman@arm.com> | Tue May 16 16:47:09 2023 +0100 |
tree | a97f0825126401ba3d8d0af8a6058352448de5c5 | |
parent | 9febc989c78455cc1e5a704920240809c3255bbe [diff] [blame] |
Fix: no newline when debug msg over DEBUG_BUF_SIZE Signed-off-by: valord577 <valord577@gmail.com>
diff --git a/library/debug.c b/library/debug.c index ab8b352..cc88437 100644 --- a/library/debug.c +++ b/library/debug.c
@@ -84,6 +84,10 @@ str[ret] = '\n'; str[ret + 1] = '\0'; } + else + { + str[DEBUG_BUF_SIZE - 2] = '\n'; + } debug_send_line(ssl, level, file, line, str); }