FreeBSD Bugzilla – Attachment 156664 Details for
Bug 200133
[patch] /usr/games/grdc displays wrong time in 12-hour mode between 12:00 and 13:00
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to grdc.c to fix bug
grdc.patch (text/plain), 522 bytes, created by
Nick Price
on 2015-05-11 18:16:45 UTC
(
hide
)
Description:
patch to grdc.c to fix bug
Filename:
MIME Type:
Creator:
Nick Price
Created:
2015-05-11 18:16:45 UTC
Size:
522 bytes
patch
obsolete
>--- grdc.c 2015-05-11 13:06:15.559096184 -0500 >+++ grdc-patched.c 2015-05-11 13:13:08.311062596 -0500 >@@ -150,14 +150,14 @@ > set(tm->tm_min/10, 14); > > if (t12) { >- if (tm->tm_hour > 12) { >- tm->tm_hour -= 12; >- mvaddstr(YBASE + 5, XBASE + 52, "PM"); >- } else { >+ if (tm->tm_hour < 12) { > if (tm->tm_hour == 0) > tm->tm_hour = 12; >- > mvaddstr(YBASE + 5, XBASE + 52, "AM"); >+ } else { >+ if(tm->tm_hour > 12) >+ tm->tm_hour -= 12; >+ mvaddstr(YBASE + 5, XBASE + 52, "PM"); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200133
: 156664