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

Diff for /src/usr.bin/cvs/status.c between version 1.34 and 1.35

version 1.34, 2005/07/07 15:52:26 version 1.35, 2005/07/08 07:22:58
Line 179 
Line 179 
 cvs_status_local(CVSFILE *cf, void *arg)  cvs_status_local(CVSFILE *cf, void *arg)
 {  {
         int len;          int len;
         char buf[MAXNAMLEN], fpath[MAXPATHLEN], numbuf[64], rcspath[MAXPATHLEN];          size_t n;
           char buf[MAXNAMLEN], fpath[MAXPATHLEN], rcspath[MAXPATHLEN];
           char numbuf[64], timebuf[32];
         char *repo;          char *repo;
         RCSFILE *rf;          RCSFILE *rf;
         struct cvsroot *root;          struct cvsroot *root;
Line 223 
Line 225 
         } else {          } else {
                 len = snprintf(buf, sizeof(buf), "%s",                  len = snprintf(buf, sizeof(buf), "%s",
                     rcsnum_tostr(cf->cf_lrev, buf, sizeof(buf)));                      rcsnum_tostr(cf->cf_lrev, buf, sizeof(buf)));
   
                   /* Display etime in local mode only. */
                   if (cvs_cmdop != CVS_OP_SERVER) {
                           strlcat(buf, "\t", sizeof(buf));
   
                           ctime_r(&(cf->cf_etime), timebuf);
                           n = strlen(timebuf);
                           if ((n > 0) && (timebuf[n - 1] == '\n'))
                                           timebuf[--n] = '\0';
   
                           strlcat(buf, timebuf, sizeof(buf));
                   }
         }          }
   
         if (len == -1 || len >= (int)sizeof(buf)) {          if (len == -1 || len >= (int)sizeof(buf)) {

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35