Commit 7ff1280bbbd1feb28ce350e2878a4e65fe94627a

Jeff Garzik 2011-04-11T17:32:25

util: correct off-by-one in month display

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index d5dc781..72a086a 100644
--- a/util.c
+++ b/util.c
@@ -80,7 +80,7 @@ void applog(int prio, const char *fmt, ...)
 		f = alloca(len);
 		sprintf(f, "[%d-%02d-%02d %02d:%02d:%02d] %s\n",
 			tm.tm_year + 1900,
-			tm.tm_mon,
+			tm.tm_mon + 1,
 			tm.tm_mday,
 			tm.tm_hour,
 			tm.tm_min,