summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-27 04:44:10 -0400
committerAdam <Adam@anope.org>2012-10-27 04:44:10 -0400
commit32d33ca8e53b8b37e6bd58ae156327181d139efc (patch)
treeb465fb09a96a29ff178ca0da78b6eab28e435b7e /src
parente1dcf24c98a14340e3c05388b749fb6069592d0e (diff)
Expand single digit serial revisions to match nn
Diffstat (limited to 'src')
-rw-r--r--src/dns.cpp2
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
{