Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: Removed the -l option from the usage message, since it's only for compatiblity.
[ashd.git]
/
src
/
accesslog.c
diff --git
a/src/accesslog.c
b/src/accesslog.c
index
3a978e0
..
f17eebe
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)) {
} 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);
}
} else {
fputc(*s, o);
}
@@
-395,6
+395,7
@@
int main(int argc, char **argv)
if(pfd[1].revents & POLLHUP)
break;
}
if(pfd[1].revents & POLLHUP)
break;
}
+ fclose(out);
if(pidfile != NULL)
unlink(pidfile);
return(0);
if(pidfile != NULL)
unlink(pidfile);
return(0);