gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 297/411: tool_debug_cb: do not assume zero-terminated data


From: gnunet
Subject: [gnurl] 297/411: tool_debug_cb: do not assume zero-terminated data
Date: Wed, 13 Jan 2021 01:21:52 +0100

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

nikita pushed a commit to branch master
in repository gnurl.

commit 9386e2a37a8ebbaaf4b9880850e9d29931d02aa3
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Tue Nov 3 08:14:46 2020 +0100

    tool_debug_cb: do not assume zero-terminated data
    
    Follow-up to d70a5b5a0f5e3
---
 src/tool_cb_dbg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c
index 1c42db8a5..69b459873 100644
--- a/src/tool_cb_dbg.c
+++ b/src/tool_cb_dbg.c
@@ -187,7 +187,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
 
   switch(type) {
   case CURLINFO_TEXT:
-    fprintf(output, "%s== Info: %s", timebuf, data);
+    fprintf(output, "%s== Info: %.*s", timebuf, (int)size, data);
     /* FALLTHROUGH */
   default: /* in case a new one is introduced to shock us */
     return 0;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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