=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cal/cal.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/cal/cal.c 2005/12/08 14:54:30 1.18 --- src/usr.bin/cal/cal.c 2006/03/24 03:44:14 1.19 *************** *** 1,4 **** ! /* $OpenBSD: cal.c,v 1.18 2005/12/08 14:54:30 jmc Exp $ */ /* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: cal.c,v 1.19 2006/03/24 03:44:14 ray Exp $ */ /* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */ /* *************** *** 40,46 **** #if 0 static char sccsid[] = "@(#)cal.c 8.4 (Berkeley) 4/2/94"; #else ! static const char rcsid[] = "$OpenBSD: cal.c,v 1.18 2005/12/08 14:54:30 jmc Exp $"; #endif #endif /* not lint */ --- 40,46 ---- #if 0 static char sccsid[] = "@(#)cal.c 8.4 (Berkeley) 4/2/94"; #else ! static const char rcsid[] = "$OpenBSD: cal.c,v 1.19 2006/03/24 03:44:14 ray Exp $"; #endif #endif /* not lint */ *************** *** 208,214 **** char *p, lineout[30]; day_array(month, year, days); ! (void)snprintf(lineout, sizeof lineout, "%s %d", month_names[month - 1], year); len = strlen(lineout); (void)printf("%*s%s\n%s\n", --- 208,214 ---- char *p, lineout[30]; day_array(month, year, days); ! (void)snprintf(lineout, sizeof(lineout), "%s %d", month_names[month - 1], year); len = strlen(lineout); (void)printf("%*s%s\n%s\n", *************** *** 231,237 **** int days[12][MAXDAYS]; char *p, lineout[80]; ! (void)snprintf(lineout, sizeof lineout, "%d", year); center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0); (void)printf("\n\n"); for (i = 0; i < 12; i++) --- 231,237 ---- int days[12][MAXDAYS]; char *p, lineout[80]; ! (void)snprintf(lineout, sizeof(lineout), "%d", year); center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0); (void)printf("\n\n"); for (i = 0; i < 12; i++) *************** *** 265,271 **** int days[12][MAXDAYS]; char *p, lineout[80]; ! (void)snprintf(lineout, sizeof lineout, "%d", year); center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0); (void)printf("\n\n"); for (i = 0; i < 12; i++) --- 265,271 ---- int days[12][MAXDAYS]; char *p, lineout[80]; ! (void)snprintf(lineout, sizeof(lineout), "%d", year); center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0); (void)printf("\n\n"); for (i = 0; i < 12; i++)