[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.282 and 1.283

version 1.282, 2008/11/09 08:51:43 version 1.283, 2009/01/02 00:11:01
Line 3179 
Line 3179 
         const u_char *c, *start, *fin, *end;          const u_char *c, *start, *fin, *end;
         char *kwstr;          char *kwstr;
         char expbuf[256], buf[256];          char expbuf[256], buf[256];
         char *fmt;  
         size_t clen, kwlen, len, tlen;          size_t clen, kwlen, len, tlen;
   
         kwtype = 0;          kwtype = 0;
Line 3314 
Line 3313 
                         }                          }
   
                         if (kwtype & RCS_KW_DATE) {                          if (kwtype & RCS_KW_DATE) {
                                 fmt = "%Y/%m/%d %H:%M:%S ";                                  if (strftime(buf, sizeof(buf),
                                       "%Y/%m/%d %H:%M:%S ",
                                 if (strftime(buf, sizeof(buf), fmt,  
                                     &rdp->rd_date) == 0)                                      &rdp->rd_date) == 0)
                                         fatal("rcs_kwexp_line: strftime "                                          fatal("rcs_kwexp_line: strftime "
                                             "failure");                                              "failure");
Line 3332 
Line 3330 
                                  * digit, %e would do so and there is                                   * digit, %e would do so and there is
                                  * no better format for strftime().                                   * no better format for strftime().
                                  */                                   */
                                 if (rdp->rd_date.tm_mday < 10)                                  if (strftime(buf, sizeof(buf),
                                         fmt = "%B%e %Y ";                                      (rdp->rd_date.tm_mday < 10) ?
                                 else                                          "%B%e %Y " : "%B %e %Y",
                                         fmt = "%B %e %Y ";  
   
                                 if (strftime(buf, sizeof(buf), fmt,  
                                     &rdp->rd_date) == 0)                                      &rdp->rd_date) == 0)
                                         fatal("rcs_kwexp_line: strftime "                                          fatal("rcs_kwexp_line: strftime "
                                             "failure");                                              "failure");
Line 3411 
Line 3406 
                                 if (strlcat(linebuf, buf, sizeof(linebuf))                                  if (strlcat(linebuf, buf, sizeof(linebuf))
                                     >= sizeof(buf))                                      >= sizeof(buf))
                                         fatal("rcs_kwexp_line: truncated");                                          fatal("rcs_kwexp_line: truncated");
                                 fmt = "  %Y/%m/%d %H:%M:%S  ";                                  if (strftime(buf, sizeof(buf),
                                 if (strftime(buf, sizeof(buf), fmt,                                      "  %Y/%m/%d %H:%M:%S  ",
                                     &rdp->rd_date) == 0)                                      &rdp->rd_date) == 0)
                                         fatal("rcs_kwexp_line: strftime "                                          fatal("rcs_kwexp_line: strftime "
                                             "failure");                                              "failure");

Legend:
Removed from v.1.282  
changed lines
  Added in v.1.283