FreeBSD Bugzilla – Attachment 37918 Details for
Bug 60170
x11-clocks/xalarm (3.06) can fail in December
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-dates
patch-dates (text/plain), 679 bytes, created by
xfb52
on 2003-12-12 00:50:12 UTC
(
hide
)
Description:
patch-dates
Filename:
MIME Type:
Creator:
xfb52
Created:
2003-12-12 00:50:12 UTC
Size:
679 bytes
patch
obsolete
>--- dates.c Wed Jul 12 16:24:26 1995 >+++ /home/alex/scratch/xalarm/dates.c Thu Dec 4 00:36:27 2003 >@@ -296,11 +296,16 @@ > if (month >= 0) date->tm_mon = month; > if (year >= 0) date->tm_year = year; > while ((year < 0) and (date->tm_year < (2500-1900)) and >- (DaysBetween (&today, date) < 0)) >- if (month < 0) >- date->tm_mon = (date->tm_mon + 1) % 12; >- else >+ (DaysBetween (&today, date) < 0)) { >+ if (month < 0) { >+ date->tm_mon++; >+ if (date->tm_mon > 11) { >+ date->tm_mon = 0; >+ date->tm_year++; >+ } >+ } else > date->tm_year++; >+ } > } else > /* > * We assume Buck Rodgers will have something better than xalarm...
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 Raw
Actions:
View
Attachments on
bug 60170
: 37918