tool_setopt: fix c_escape truncated octal
Closes https://github.com/bagder/curl/pull/469
This commit is contained in:
Родитель
5bf36ea30d
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче