gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 67/125: curl: support >256 bytes warning messsages


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 67/125: curl: support >256 bytes warning messsages
Date: Sun, 21 Jan 2018 23:42:02 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 5d0ba70e17bde74d9a9108c38558f6491d2b5c4d
Author: Daniel Stenberg <address@hidden>
AuthorDate: Tue Dec 12 19:58:47 2017 +0100

    curl: support >256 bytes warning messsages
    
    Bug: #2174
---
 src/tool_msgs.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/tool_msgs.c b/src/tool_msgs.c
index 07bf81292..91d62ec1e 100644
--- a/src/tool_msgs.c
+++ b/src/tool_msgs.c
@@ -42,9 +42,12 @@ static void voutf(struct GlobalConfig *config,
   if(!config->mute) {
     size_t len;
     char *ptr;
-    char print_buffer[256];
+    char *print_buffer;
 
-    len = vsnprintf(print_buffer, sizeof(print_buffer), fmt, ap);
+    print_buffer = curlx_mvaprintf(fmt, ap);
+    if(!print_buffer)
+      return;
+    len = strlen(print_buffer);
 
     ptr = print_buffer;
     while(len > 0) {
@@ -71,6 +74,7 @@ static void voutf(struct GlobalConfig *config,
         len = 0;
       }
     }
+    curl_free(print_buffer);
   }
 }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]