]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: adjust format string formaters
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 27 Mar 2018 22:53:25 +0000 (00:53 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Fri, 30 Mar 2018 11:13:34 +0000 (13:13 +0200)
pdns/zoneparser-tng.cc

index 2c38e912d2ff202e820115e5ab80fd8796dd0cd0..7a850ffc8e7844561b0ae0cb3613bed39387fb25 100644 (file)
@@ -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();