]> granicus.if.org Git - curl/commitdiff
mbedtls: fix includes so snprintf() works
authorDaniel Stenberg <daniel@haxx.se>
Tue, 24 May 2016 10:14:18 +0000 (12:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 24 May 2016 10:14:18 +0000 (12:14 +0200)
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

index 6fc7214ac0e036491ad1b4accd404f160540e9d3..ef0b9492ab7d9831f2b10ba31f940ea20a9dc964 100644 (file)
 #include "rawstr.h"
 #include "polarssl_threadlock.h"
 
-#define _MPRINTF_REPLACE /* use our functions only */
-#include <curl/mprintf.h>
+/* 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? */