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

Diff for /src/usr.bin/cvs/Attic/hist.c between version 1.3 and 1.4

version 1.3, 2004/12/07 17:10:56 version 1.4, 2005/04/16 17:50:08
Line 277 
Line 277 
 cvs_hist_fmt(const struct cvs_hent *ent, char *buf, size_t blen)  cvs_hist_fmt(const struct cvs_hent *ent, char *buf, size_t blen)
 {  {
         char numbuf[64];          char numbuf[64];
           int len;
   
         if (rcsnum_tostr(ent->ch_rev, numbuf, sizeof(numbuf)) == NULL)          if (rcsnum_tostr(ent->ch_rev, numbuf, sizeof(numbuf)) == NULL)
                 return (-1);                  return (-1);
   
         return (snprintf(buf, blen, "%c%8x|%s|%s|%s|%s|%s",          len = snprintf(buf, blen, "%c%8x|%s|%s|%s|%s|%s",
             ent->ch_event, ent->ch_date, ent->ch_user, ent->ch_curdir,              ent->ch_event, ent->ch_date, ent->ch_user, ent->ch_curdir,
             ent->ch_repo, numbuf, ent->ch_arg));              ent->ch_repo, numbuf, ent->ch_arg);
           if (len >= (int)blen || len == -1)
                   return (-1);
           return (len);
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4