Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f18d70
)
accesslog: Fixed quoting sign-extension.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 19 Jun 2012 18:39:32 +0000
(20:39 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 19 Jun 2012 18:39:32 +0000
(20:39 +0200)
src/accesslog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/accesslog.c
b/src/accesslog.c
index
3a978e0
..
0c292c8
100644
(file)
--- 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);
}