34 lines
968 B
Diff
34 lines
968 B
Diff
From 927cb3708e29fd88dcfadb9444d0dc93dc2aa4b2 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Gustafsson <daniel@yesql.se>
|
|
Date: Mon, 17 Sep 2018 09:28:10 +0200
|
|
Subject: [PATCH 064/557] 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>
|
|
---
|
|
lib/security.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/security.c b/lib/security.c
|
|
index 5f52515..6165d0a 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 {
|
|
--
|
|
1.8.3.1
|
|
|