]> granicus.if.org Git - curl/commitdiff
memory: add missing curl_printf header
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 17 Sep 2018 07:28:10 +0000 (09:28 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 17 Sep 2018 07:28:10 +0000 (09:28 +0200)
ftp_send_command() was using vsnprintf() without including the libcurl
*rintf() replacement header. Fix by including curl_printf.h and also
add curl_memory.h while at it since memdebug.h depends on it.

Closes #2999
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
lib/security.c

index 5f52515ed4375da3338307bcacf3e1c1ba716e8f..6165d0af01b109f2da53260a35911e9df5c2b71b 100644 (file)
@@ -61,7 +61,9 @@
 #include "strcase.h"
 #include "warnless.h"
 #include "strdup.h"
-/* The last #include file should be: */
+/* The last 3 #include files should be in this order */
+#include "curl_printf.h"
+#include "curl_memory.h"
 #include "memdebug.h"
 
 static const struct {