From: Frederic Marchal Date: Tue, 20 Oct 2015 17:43:56 +0000 (+0200) Subject: Display the correct date in the redirector report X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=358e16cec590c0a52d24f2f96e908e2b2503d7fb;p=thirdparty%2Fsarg.git Display the correct date in the redirector report Due to a typo in the source code, any date in October would be displayed as month 0, November as month 1 and December as month 2. Thanks to Evgeniy Yakushev for reporting this bug --- diff --git a/redirector.c b/redirector.c index 23e8508..10a047e 100644 --- a/redirector.c +++ b/redirector.c @@ -520,7 +520,7 @@ void redirector_report(void) exit(EXIT_FAILURE); } - computedate(data2/10000,(data2/100)%10,data2%100,&t); + computedate(data2/10000,(data2/100)%100,data2%100,&t); strftime(data,sizeof(data),"%x",&t); new_user=false;