Skip to content

Commit

Permalink
tool_setopt: fix c_escape truncated octal
Browse files Browse the repository at this point in the history
Closes #469
  • Loading branch information
majstar authored and jay committed Oct 2, 2015
1 parent 5bf36ea commit 2eb4f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tool_setopt.c
Expand Up @@ -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
Expand Down

0 comments on commit 2eb4f5e

Please sign in to comment.