summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2018-09-17 09:28:10 +0200
committerDaniel Gustafsson <daniel@yesql.se>2018-09-17 09:28:10 +0200
commit927cb3708e29fd88dcfadb9444d0dc93dc2aa4b2 (patch)
tree20c9ec816187613695142e4e030d27253bcc6bb5
parent093ba904c904eee277354410eea8632bd407da69 (diff)
downloadcurl-927cb3708e29fd88dcfadb9444d0dc93dc2aa4b2.tar.gz
memory: add missing curl_printf header
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>
-rw-r--r--lib/security.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/security.c b/lib/security.c
index 5f52515ed..6165d0af0 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -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 {