[BACK]Return to cal.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cal

Diff for /src/usr.bin/cal/cal.c between version 1.18 and 1.19

version 1.18, 2005/12/08 14:54:30 version 1.19, 2006/03/24 03:44:14
Line 208 
Line 208 
         char *p, lineout[30];          char *p, lineout[30];
   
         day_array(month, year, days);          day_array(month, year, days);
         (void)snprintf(lineout, sizeof lineout, "%s %d",          (void)snprintf(lineout, sizeof(lineout), "%s %d",
             month_names[month - 1], year);              month_names[month - 1], year);
         len = strlen(lineout);          len = strlen(lineout);
         (void)printf("%*s%s\n%s\n",          (void)printf("%*s%s\n%s\n",
Line 231 
Line 231 
         int days[12][MAXDAYS];          int days[12][MAXDAYS];
         char *p, lineout[80];          char *p, lineout[80];
   
         (void)snprintf(lineout, sizeof lineout, "%d", year);          (void)snprintf(lineout, sizeof(lineout), "%d", year);
         center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0);          center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0);
         (void)printf("\n\n");          (void)printf("\n\n");
         for (i = 0; i < 12; i++)          for (i = 0; i < 12; i++)
Line 265 
Line 265 
         int days[12][MAXDAYS];          int days[12][MAXDAYS];
         char *p, lineout[80];          char *p, lineout[80];
   
         (void)snprintf(lineout, sizeof lineout, "%d", year);          (void)snprintf(lineout, sizeof(lineout), "%d", year);
         center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0);          center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0);
         (void)printf("\n\n");          (void)printf("\n\n");
         for (i = 0; i < 12; i++)          for (i = 0; i < 12; i++)

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19