=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/calendar/io.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/calendar/io.c 1997/09/12 04:12:48 1.2 --- src/usr.bin/calendar/io.c 1998/02/14 21:07:21 1.3 *************** *** 1,4 **** ! /* $OpenBSD: io.c,v 1.2 1997/09/12 04:12:48 millert Exp $ */ /* * Copyright (c) 1989, 1993, 1994 --- 1,4 ---- ! /* $OpenBSD: io.c,v 1.3 1998/02/14 21:07:21 millert Exp $ */ /* * Copyright (c) 1989, 1993, 1994 *************** *** 43,49 **** #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else ! static char rcsid[] = "$OpenBSD: io.c,v 1.2 1997/09/12 04:12:48 millert Exp $"; #endif #endif /* not lint */ --- 43,49 ---- #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else ! static char rcsid[] = "$OpenBSD: io.c,v 1.3 1998/02/14 21:07:21 millert Exp $"; #endif #endif /* not lint */ *************** *** 149,156 **** tm.tm_mon = month - 1; tm.tm_mday = day; tm.tm_year = tp->tm_year; /* unused */ ! (void)strftime(dbuf, sizeof(dbuf), "%c", &tm); ! dbuf[10] = '\0'; (void)fprintf(fp, "%s%c%s\n", dbuf + 4/* skip weekdays */, var ? '*' : ' ', p); --- 149,159 ---- tm.tm_mon = month - 1; tm.tm_mday = day; tm.tm_year = tp->tm_year; /* unused */ ! tm.tm_isdst = tp->tm_isdst; /* unused */ ! tm.tm_gmtoff = tp->tm_gmtoff; /* unused */ ! tm.tm_zone = tp->tm_zone; /* unused */ ! (void)strftime(dbuf, sizeof(dbuf), "%a %b %d", ! &tm); (void)fprintf(fp, "%s%c%s\n", dbuf + 4/* skip weekdays */, var ? '*' : ' ', p);