From: bert hubert Date: Tue, 4 Jun 2013 13:07:07 +0000 (+0200) Subject: silence array warning X-Git-Tag: auth-3.3-rc2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6632d4ff9c76444bffbb76ef631882b8a58ff3b6;p=thirdparty%2Fpdns.git silence array warning --- diff --git a/pdns/unix_utility.cc b/pdns/unix_utility.cc index 507b431324..862e0587d8 100644 --- a/pdns/unix_utility.cc +++ b/pdns/unix_utility.cc @@ -237,7 +237,7 @@ time_t Utility::timegm(struct tm *const t) if (t->tm_sec>60) { t->tm_min += t->tm_sec/60; t->tm_sec%=60; } if (t->tm_min>60) { t->tm_hour += t->tm_min/60; t->tm_min%=60; } if (t->tm_hour>60) { t->tm_mday += t->tm_hour/60; t->tm_hour%=60; } - if (t->tm_mon>12) { t->tm_year += t->tm_mon/12; t->tm_mon%=12; } + if (t->tm_mon>11) { t->tm_year += t->tm_mon/12; t->tm_mon%=12; } while (t->tm_mday>spm[1+t->tm_mon]) { if (t->tm_mon==1 && isleap(t->tm_year+1900)) {