1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

modify programs/*.c to use polarssl_snprintf

This commit is contained in:
Rich Evans
2015-01-30 11:11:57 +00:00
parent 2387c7d105
commit 783d9d1c3e
8 changed files with 27 additions and 19 deletions

View File

@ -29,6 +29,7 @@
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#else
#define polarssl_snprintf snprintf
#define polarssl_printf printf
#define polarssl_fprintf fprintf
#endif
@ -1197,7 +1198,7 @@ send_request:
polarssl_printf( " > Write to server:" );
fflush( stdout );
len = snprintf( (char *) buf, sizeof(buf) - 1, GET_REQUEST,
len = polarssl_snprintf( (char *) buf, sizeof(buf) - 1, GET_REQUEST,
opt.request_page );
tail_len = strlen( GET_REQUEST_END );