From: Charles-Henri Bruyand Date: Tue, 27 Mar 2018 22:53:25 +0000 (+0200) Subject: rec: adjust format string formaters X-Git-Tag: dnsdist-1.3.1~184^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfce2f5722d96ec6120f8c641ed10ce5058571c0;p=thirdparty%2Fpdns.git rec: adjust format string formaters --- diff --git a/pdns/zoneparser-tng.cc b/pdns/zoneparser-tng.cc index 2c38e912d2..7a850ffc8e 100644 --- a/pdns/zoneparser-tng.cc +++ b/pdns/zoneparser-tng.cc @@ -314,7 +314,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment) string range=makeString(d_line, parts[1]); d_templatestep=1; d_templatestop=0; - sscanf(range.c_str(),"%d-%d/%d", &d_templatecounter, &d_templatestop, &d_templatestep); + sscanf(range.c_str(),"%u-%u/%u", &d_templatecounter, &d_templatestop, &d_templatestep); d_templateline=d_line; parts.pop_front(); parts.pop_front();