From b15a17c702eff70c79b384c07d20272c2495d583 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 24 May 2016 12:14:18 +0200 Subject: mbedtls: fix includes so snprintf() works Regression from the previous *printf() rearrangements, this file missed to include the correct header to make sure snprintf() works universally. Reported-by: Moti Avrahami Bug: https://curl.haxx.se/mail/lib-2016-05/0196.html --- lib/vtls/mbedtls.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/vtls/mbedtls.c') diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index 6fc7214ac..ef0b9492a 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -53,10 +53,9 @@ #include "rawstr.h" #include "polarssl_threadlock.h" -#define _MPRINTF_REPLACE /* use our functions only */ -#include +/* The last 3 #include files should be in this order */ +#include "curl_printf.h" #include "curl_memory.h" -/* The last #include file should be: */ #include "memdebug.h" /* apply threading? */ -- cgit v1.2.3