diff options
-rw-r--r-- | src/dns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |