]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Another escape() fix, for picky sprintfs.
authorNick Mathewson <nickm@torproject.org>
Fri, 9 Jun 2006 17:07:22 +0000 (17:07 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Jun 2006 17:07:22 +0000 (17:07 +0000)
svn:r6579

src/common/util.c

index e7dc9ccbc83027ef6ee9aa51366b776f367c0340..2af0cf7b407f6117cabbd7d1da2cd9da239ea2e6 100644 (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;