From 927cb3708e29fd88dcfadb9444d0dc93dc2aa4b2 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Mon, 17 Sep 2018 09:28:10 +0200 Subject: 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 --- lib/security.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/security.c') 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 { -- cgit v1.2.3