gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 213/411: tool_setopt: escape binary data to hex, not octal


From: gnunet
Subject: [gnurl] 213/411: tool_setopt: escape binary data to hex, not octal
Date: Wed, 13 Jan 2021 01:20:28 +0100

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

nikita pushed a commit to branch master
in repository gnurl.

commit 01327600e3a9f0bd23383eb21ad7dcdc84a0c249
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Fri Oct 2 00:07:41 2020 +0200

    tool_setopt: escape binary data to hex, not octal
---
 src/tool_setopt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index ea23e9386..02f305729 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -268,7 +268,7 @@ static char *c_escape(const char *str, curl_off_t len)
       e += 2;
     }
     else if(! isprint(c)) {
-      msnprintf(e, 5, "\\%03o", (unsigned)c);
+      msnprintf(e, 5, "\\x%02x", (unsigned)c);
       e += 4;
     }
     else

-- 
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]