From 84409015be135a9714ef1498702cfbfd30cb26ab Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 11 Dec 2014 09:18:07 -0600 Subject: [PATCH] wmclock: Show correct year when -year is given. From the Debian patch: http://sources.debian.net/src/wmclock/1.0.14-6/debian/patches/correct_year.patch/ For more information, see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723887 --- wmclock/wmclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmclock/wmclock.c b/wmclock/wmclock.c index d65e7e6..3feb937 100644 --- a/wmclock/wmclock.c +++ b/wmclock/wmclock.c @@ -490,7 +490,7 @@ void showYear(void) XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC, digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT, xPos[DIGIT_1_X_POS], yPos[DIGIT_Y_POS]); - digitXOffset = LED_NUM_WIDTH * ((year % 100) % 10); + digitXOffset = LED_NUM_WIDTH * ((year / 100) % 10); XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC, digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT, xPos[DIGIT_2_X_POS], yPos[DIGIT_Y_POS]);