From 32d33ca8e53b8b37e6bd58ae156327181d139efc Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 27 Oct 2012 04:44:10 -0400 Subject: [PATCH] Expand single digit serial revisions to match nn --- src/dns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns.cpp b/src/dns.cpp index fdcfee881..500676677 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -919,7 +919,7 @@ void DNSManager::UpdateSerial() ++last_num; int i = strftime(timebuf, sizeof(timebuf), "%Y%m%d", tm); - snprintf(timebuf + i, sizeof(timebuf) - i, "%d", last_num); + snprintf(timebuf + i, sizeof(timebuf) - i, "%02d", last_num); try {