From 1f585987c4b20cc12f789a9943abffa5d8205c7b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 9 Jun 2006 17:07:22 +0000 Subject: Another escape() fix, for picky sprintfs. svn:r6579 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/util.c b/src/common/util.c index e7dc9ccbc8..2af0cf7b40 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -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; -- cgit v1.2.3-54-g00ecf