projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9dd5c2
)
server_last_modified(): Fix format specifiers in a log message
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 11 Sep 2020 12:37:24 +0000
(14:37 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Fri, 11 Sep 2020 14:35:40 +0000
(16:35 +0200)
parsers.c
patch
|
blob
|
history
diff --git
a/parsers.c
b/parsers.c
index
2342937
..
2a7e0e9
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-2907,7
+2907,7
@@
static jb_err server_last_modified(struct client_state *csp, char **header)
seconds = rtime % 60;
log_error(LOG_LEVEL_HEADER,
- "Randomized: %s (added %
d da%s %d hou%s %d minut%s %
d second%s",
+ "Randomized: %s (added %
ld da%s %ld hou%s %ld minut%s %l
d second%s",
*header, days, (days == 1) ? "y" : "ys", hours, (hours == 1) ? "r" : "rs",
minutes, (minutes == 1) ? "e" : "es", seconds, (seconds == 1) ? ")" : "s)");
}