diff options
author | Clark Rawlins <clark.rawlins@escient.com> | 2007-06-11 16:53:38 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-11 16:53:38 +0200 |
commit | 8d5f4368eac1b259db3e61f877a4cc10f04efa2f (patch) | |
tree | 041f29f089ea9c3c694437e3662a3b85d5d27399 /hw | |
parent | 54e023cec07aa7e392da36e11d0a4667b8341370 (diff) |
Really make sure BUILD_TIME doesn't have a leading zero.
date +'%k%M%S' still gives a leading zero in the hour after midnight...
Add a leading 1 and remove it in xf86PrintBanner().
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/common/xf86Init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 8423fca36..16162b7bc 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1733,7 +1733,7 @@ xf86PrintBanner() #if defined(BUILD_TIME) t.tm_sec = BUILD_TIME % 100; t.tm_min = (BUILD_TIME / 100) % 100; - t.tm_hour = (BUILD_TIME / 10000); + t.tm_hour = (BUILD_TIME / 10000) % 100; if (strftime(buf, sizeof(buf), "%d %B %Y %I:%M:%s%p", &t)) ErrorF("Build Date: %s\n", buf); #else |