mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix minor format string inconsistency.
This commit is contained in:
committed by
Paul Bakker
parent
c2bbac968b
commit
8ebfe084ab
@ -131,7 +131,7 @@ void debug_print_buf( const ssl_context *ssl, int level,
|
|||||||
if( debug_log_mode == POLARSSL_DEBUG_LOG_FULL )
|
if( debug_log_mode == POLARSSL_DEBUG_LOG_FULL )
|
||||||
idx = snprintf( str, maxlen, "%s(%04d): ", file, line );
|
idx = snprintf( str, maxlen, "%s(%04d): ", file, line );
|
||||||
|
|
||||||
snprintf( str + idx, maxlen - idx, "dumping '%s' (%d bytes)\n",
|
snprintf( str + idx, maxlen - idx, "dumping '%s' (%u bytes)\n",
|
||||||
text, (unsigned int) len );
|
text, (unsigned int) len );
|
||||||
|
|
||||||
str[maxlen] = '\0';
|
str[maxlen] = '\0';
|
||||||
|
Reference in New Issue
Block a user