mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05:00
tool_setopt: escape binary data to hex, not octal
This commit is contained in:
parent
3997b3e2a4
commit
01327600e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user