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

Diff for /src/usr.bin/cvs/rcs.c between version 1.226 and 1.227

version 1.226, 2007/11/08 20:37:40 version 1.227, 2007/11/08 20:43:42
Line 3219 
Line 3219 
                                 }                                  }
   
                                 if (kwtype & RCS_KW_MDOCDATE) {                                  if (kwtype & RCS_KW_MDOCDATE) {
                                         fmt = "%B %e %Y ";                                          /*
                                            * Do not prepend ' ' for a single
                                            * digit, %e would do so and there is
                                            * no better format for strftime().
                                            */
                                           if (rdp->rd_date.tm_mday < 10)
                                                   fmt = "%B%e %Y ";
                                           else
                                                   fmt = "%B %e %Y ";
   
                                         if (strftime(buf, sizeof(buf), fmt, &rdp->rd_date) == 0)                                          if (strftime(buf, sizeof(buf), fmt, &rdp->rd_date) == 0)
                                                 fatal("rcs_kwexp_line: strftime failure");                                                  fatal("rcs_kwexp_line: strftime failure");

Legend:
Removed from v.1.226  
changed lines
  Added in v.1.227