From: Peter van Dijk Date: Thu, 3 Dec 2015 12:53:37 +0000 (+0100) Subject: don't truncate timestamps on raspberry pi X-Git-Tag: dnsdist-1.0.0-alpha1~134^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e79087ed4d4b4b56e6090ab8909662e85d39bf3;p=pdns don't truncate timestamps on raspberry pi --- diff --git a/pdns/rcpgenerator.cc b/pdns/rcpgenerator.cc index 0b691d671..94925ba45 100644 --- a/pdns/rcpgenerator.cc +++ b/pdns/rcpgenerator.cc @@ -51,8 +51,7 @@ void RecordTextReader::xfr64BitInt(uint64_t &val) throw RecordTextException("expected digits at position "+lexical_cast(d_pos)+" in '"+d_string+"'"); char *endptr; - unsigned long ret=strtoull(d_string.c_str() + d_pos, &endptr, 10); - val=ret; + val=strtoull(d_string.c_str() + d_pos, &endptr, 10); d_pos = endptr - d_string.c_str(); }