projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
expect seems to exist on some systems in the system inc files
[rrdtool.git]
/
src
/
rrd_graph_helper.c
diff --git
a/src/rrd_graph_helper.c
b/src/rrd_graph_helper.c
index
bea9d7b
..
a33a8ef
100644
(file)
--- a/
src/rrd_graph_helper.c
+++ b/
src/rrd_graph_helper.c
@@
-293,8
+293,8
@@
rrd_parse_def(char *line, unsigned int *eaten, graph_desc_t *gdp, image_desc_t *
start_tv.type = end_tv.type=ABSOLUTE_TIME;
start_tv.offset = end_tv.offset=0;
start_tv.type = end_tv.type=ABSOLUTE_TIME;
start_tv.offset = end_tv.offset=0;
-
memcpy(&start_tv.tm, localtime(&gdp->start) , sizeof(struct tm)
);
-
memcpy(&end_tv.tm, localtime(&gdp->end) , sizeof(struct tm)
);
+
localtime_r(&gdp->start, &start_tv.tm
);
+
localtime_r(&gdp->end, &end_tv.tm
);
dprintf("- parsing '%s'\n",&line[*eaten]);
dprintf("- from line '%s'\n",line);
dprintf("- parsing '%s'\n",&line[*eaten]);
dprintf("- from line '%s'\n",line);