cscvs to tla changeset 67
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:33 +0000 (23:47 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:33 +0000 (23:47 +0000)
Author: noodles
Date: 2003/04/05 11:35:59
Fix silly bug where month is one less than it should be.

log.c

diff --git a/log.c b/log.c
index 5d067bc7f606f71ea119ec4b1f854b0c88f42fdd..3bc8017179410067374fcefd6c02c6e7d6984330 100644 (file)
--- a/log.c
+++ b/log.c
@@ -131,7 +131,7 @@ int logthing(loglevels loglevel, const char *format, ...)
        
                fprintf(logfile, "[%02d/%02d/%4d %02d:%02d:%02d] %s[%d]: ",
                                timestamp->tm_mday,
-                               timestamp->tm_mon,
+                               timestamp->tm_mon + 1,
                                timestamp->tm_year + 1900,
                                timestamp->tm_hour,
                                timestamp->tm_min,