diff options
author | Maksim Stsepanenka <mstsepanenka@gmail.com> | 2015-10-02 02:43:57 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2015-10-02 02:45:28 -0400 |
commit | 2eb4f5efe9998b9eb0eda94beb713e89d20fb342 (patch) | |
tree | 982ac4ead1a32ee7aae6e0fe3cea1a91185d7739 /src | |
parent | 5bf36ea30d38b9e00029180ddbab73cab94a2195 (diff) |
tool_setopt: fix c_escape truncated octal
Closes https://github.com/bagder/curl/pull/469
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_setopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c index 7eb64b039..2ed68e5eb 100644 --- a/src/tool_setopt.c +++ b/src/tool_setopt.c @@ -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 |