From: Daniel Stenberg Date: Tue, 24 May 2016 10:14:18 +0000 (+0200) Subject: mbedtls: fix includes so snprintf() works X-Git-Tag: curl-7_49_1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b15a17c702eff70c79b384c07d20272c2495d583;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index 6fc7214ac0..ef0b9492ab 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? */