Commit 2ec9378c authored by Daniel Salzman's avatar Daniel Salzman

zone-dump: replace gmtime with thread safe gmtime_r

close #181
parent 851297e2
......@@ -624,9 +624,10 @@ static void wire_timestamp_to_str(rrset_dump_params_t *p)
time_t timestamp = ntohl(data);
if (p->style->human_tmstamp) {
struct tm result;
// Write timestamp in YYYYMMDDhhmmss format.
ret = strftime(p->out, p->out_max, "%Y%m%d%H%M%S",
gmtime_r(&timestamp, &result));
if (ret == 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment