From d39bb888a0522c17e597f5e139155a7a8af32de0 Mon Sep 17 00:00:00 2001 From: id Date: Sun, 12 Dec 1999 23:53:23 +0000 Subject: [PATCH] From man localtime, January is 0 and December is 11, compare it to 12 won't do such a thing. --- src/superfluous.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/superfluous.c b/src/superfluous.c index 3fe1f133..56e752a7 100644 --- a/src/superfluous.c +++ b/src/superfluous.c @@ -541,7 +541,7 @@ InitXThing(WScreen *scr) t = time(NULL); l = localtime(&t); - if ((l->tm_mon!=12||l->tm_mday<24||l->tm_mday>26)) { + if ((l->tm_mon!=11||l->tm_mday<24||l->tm_mday>26)) { return False; } -- 2.11.4.GIT