From 031b009ea678809bf1ddca883c2082b304c408c9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 13 Jul 2007 14:54:45 -0700 Subject: [PATCH] Use %S instead of %s for strftime seconds when printing build time --- hw/xfree86/common/xf86Init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index d20a2714a..d098e13fd 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1731,7 +1731,7 @@ xf86PrintBanner() t.tm_sec = BUILD_TIME % 100; t.tm_min = (BUILD_TIME / 100) % 100; t.tm_hour = (BUILD_TIME / 10000) % 100; - if (strftime(buf, sizeof(buf), "%d %B %Y %I:%M:%s%p", &t)) + if (strftime(buf, sizeof(buf), "%d %B %Y %I:%M:%S%p", &t)) ErrorF("Build Date: %s\n", buf); #else if (strftime(buf, sizeof(buf), "%d %B %Y", &t))