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

Diff for /src/usr.bin/cvs/entries.c between version 1.63 and 1.64

version 1.63, 2006/12/07 10:44:16 version 1.64, 2006/12/07 13:28:21
Line 38 
Line 38 
         ep = (CVSENTRIES *)xmalloc(sizeof(*ep));          ep = (CVSENTRIES *)xmalloc(sizeof(*ep));
         memset(ep, 0, sizeof(*ep));          memset(ep, 0, sizeof(*ep));
   
         cvs_path_cat(dir, CVS_PATH_ENTRIES, buf, sizeof(buf));          if (cvs_path_cat(dir, CVS_PATH_ENTRIES, buf, sizeof(buf)) >=
               sizeof(buf))
                   fatal("cvs_ent_open: truncation");
   
         ep->cef_path = xstrdup(buf);          ep->cef_path = xstrdup(buf);
   
         cvs_path_cat(dir, CVS_PATH_BACKUPENTRIES, buf, sizeof(buf));          if (cvs_path_cat(dir, CVS_PATH_BACKUPENTRIES, buf, sizeof(buf)) >=
               sizeof(buf))
                   fatal("cvs_ent_open: truncation");
   
         ep->cef_bpath = xstrdup(buf);          ep->cef_bpath = xstrdup(buf);
   
         cvs_path_cat(dir, CVS_PATH_LOGENTRIES, buf, sizeof(buf));          if (cvs_path_cat(dir, CVS_PATH_LOGENTRIES, buf, sizeof(buf)) >=
               sizeof(buf))
                   fatal("cvs_ent_open: truncation");
   
         ep->cef_lpath = xstrdup(buf);          ep->cef_lpath = xstrdup(buf);
   
         TAILQ_INIT(&(ep->cef_ent));          TAILQ_INIT(&(ep->cef_ent));

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64