[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.
- [gnurl] 218/411: ldap: reduce the amount of #ifdefs needed, (continued)
- [gnurl] 218/411: ldap: reduce the amount of #ifdefs needed, gnunet, 2021/01/12
- [gnurl] 194/411: memdebug: remove 9 year old unused debug function, gnunet, 2021/01/12
- [gnurl] 187/411: test163[12]: require http to be built-in to run, gnunet, 2021/01/12
- [gnurl] 217/411: runtests: provide curl's version string as %VERSION for tests, gnunet, 2021/01/12
- [gnurl] 220/411: --help: move two options from the misc category, gnunet, 2021/01/12
- [gnurl] 243/411: connect: repair build without ipv6 availability, gnunet, 2021/01/12
- [gnurl] 206/411: tests/README: convert to markdown, gnunet, 2021/01/12
- [gnurl] 249/411: checksrc: warn on empty line before open brace, gnunet, 2021/01/12
- [gnurl] 208/411: TODO: Add OpenBSD libtool notice, gnunet, 2021/01/12
- [gnurl] 209/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 213/411: tool_setopt: escape binary data to hex, not octal,
gnunet <=
- [gnurl] 260/411: curl_url_set.3: fix typo in the RETURN VALUE section, gnunet, 2021/01/12
- [gnurl] 234/411: tests/server/util.c: fix support for Windows Unicode builds, gnunet, 2021/01/12
- [gnurl] 235/411: CI/tests: fix invocation of tests for CMake builds, gnunet, 2021/01/12
- [gnurl] 227/411: checksrc: detect // comments on column 0, gnunet, 2021/01/12
- [gnurl] 199/411: sectransp: make it build with --disable-proxy, gnunet, 2021/01/12
- [gnurl] 246/411: runtests: return error if no tests ran, gnunet, 2021/01/12
- [gnurl] 228/411: runtests.pl: use $LIBDIR variable instead of hardcoded path, gnunet, 2021/01/12
- [gnurl] 211/411: strerror: fix null deref on winapi out-of-memory, gnunet, 2021/01/12
- [gnurl] 237/411: mailmap: fixups of some contributors, gnunet, 2021/01/12
- [gnurl] 204/411: examples/README: convert to markdown, gnunet, 2021/01/12