projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parse_header_time(): Use privoxy_gmtime_r()
[privoxy.git]
/
parsers.c
diff --git
a/parsers.c
b/parsers.c
index
6b93b74
..
15abc40
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-4356,9
+4356,10
@@
static jb_err parse_header_time(const char *header_time, time_t *result)
{
char recreated_date[100];
struct tm *tm;
+ struct tm storage;
time_t result2;
- tm =
gmtime(result
);
+ tm =
privoxy_gmtime_r(result, &storage
);
if (!strftime(recreated_date, sizeof(recreated_date),
time_formats[i], tm))
{