8af5ef2e9d
an overactive imagination. Spell `LDFLAGS' correctly. Fix Y2K problem without introducing a Y2001 problem.
26 lines
644 B
Plaintext
26 lines
644 B
Plaintext
--- sattrack/sattime.c~ Thu Jul 27 15:38:07 2000
|
|
+++ sattrack/sattime.c Thu Jul 27 15:46:23 2000
|
|
@@ -99,19 +99,18 @@
|
|
int *day, *month, *year, *yday, *hour, *min, *sec;
|
|
|
|
{
|
|
- char timeString[80];
|
|
+ char timeString[26];
|
|
|
|
time_t timeofday;
|
|
struct tm *tm;
|
|
|
|
time(&timeofday);
|
|
tm = gmtime(&timeofday);
|
|
- strncpy(timeString,asctime(tm),16);
|
|
- timeString[16] = '\0';
|
|
+ strncpy(timeString,asctime(tm),26);
|
|
|
|
*day = tm->tm_mday;
|
|
*month = tm->tm_mon + 1;
|
|
- *year = tm->tm_year;
|
|
+ *year = tm->tm_year + 1900;
|
|
*yday = tm->tm_yday + 1;
|
|
*hour = tm->tm_hour;
|
|
*min = tm->tm_min;
|