Another escape() fix, for picky sprintfs.

svn:r6579
This commit is contained in:
Nick Mathewson 2006-06-09 17:07:22 +00:00
parent 2936da4c28
commit 1f585987c4

View File

@ -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;