mirror of
https://github.com/curl/curl.git
synced 2026-07-26 02:57:15 +03:00
tool_setopt: escape binary data to hex, not octal
This commit is contained in:
parent
3997b3e2a4
commit
01327600e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue