tool_setopt: fix c_escape truncated octal
Closes https://github.com/bagder/curl/pull/469
This commit is contained in:
parent
5bf36ea30d
commit
2eb4f5efe9
@ -227,7 +227,7 @@ static char *c_escape(const char *str)
|
||||
e += 2;
|
||||
}
|
||||
else if(! isprint(c)) {
|
||||
snprintf(e, 4, "\\%03o", c);
|
||||
snprintf(e, 5, "\\%03o", (unsigned)c);
|
||||
e += 4;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user