X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Faccesslog.c;h=0c292c818f7b5c0c13c1e2270c26ed8a93fba124;hb=58ee5c4ab4ce9be692277b520de72735494bd9f7;hp=3a978e052fed76b6e5be8b4d010e611034d7e422;hpb=e09f3227872481af1a7bafe50d71a60f47292ac2;p=ashd.git diff --git a/src/accesslog.c b/src/accesslog.c index 3a978e0..0c292c8 100644 --- a/src/accesslog.c +++ b/src/accesslog.c @@ -58,7 +58,7 @@ static void qputs(char *s, FILE *o) } else if(*s == '\t') { fputs("\\t", o); } else if((*s < 32) || (*s >= 128)) { - fprintf(o, "\\x%02x", *s); + fprintf(o, "\\x%02x", (int)(unsigned char)*s); } else { fputc(*s, o); }