mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Another escape() fix, for picky sprintfs.
svn:r6579
This commit is contained in:
parent
2936da4c28
commit
1f585987c4
@ -623,7 +623,7 @@ esc_for_log(const char *s)
|
||||
if (TOR_ISPRINT(*cp) && ((uint8_t)*cp)<127) {
|
||||
*outp++ = *cp;
|
||||
} else {
|
||||
tor_snprintf(outp, 5, "\\%03o", (uint8_t) *cp);
|
||||
tor_snprintf(outp, 5, "\\%03o", (int)(uint8_t) *cp);
|
||||
outp += 4;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user