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

Diff for /src/usr.bin/cvs/edit.c between version 1.39 and 1.40

version 1.39, 2007/10/05 19:28:23 version 1.40, 2008/01/10 10:08:22
Line 275 
Line 275 
                 fatal("gmtime failed");                  fatal("gmtime failed");
   
         asctime_r(t, timebuf);          asctime_r(t, timebuf);
         if (timebuf[strlen(timebuf) - 1] == '\n')          timebuf[strcspn(timebuf, "\n")] = '\0';
                 timebuf[strlen(timebuf) - 1] = '\0';  
   
         if (gethostname(thishost, sizeof(thishost)) == -1)          if (gethostname(thishost, sizeof(thishost)) == -1)
                 fatal("gethostname failed");                  fatal("gethostname failed");
Line 362 
Line 361 
                 fatal("gmtime failed");                  fatal("gmtime failed");
   
         asctime_r(t, timebuf);          asctime_r(t, timebuf);
         if (timebuf[strlen(timebuf) - 1] == '\n')          timebuf[strcspn(timebuf, "\n")] = '\0';
                 timebuf[strlen(timebuf) - 1] = '\0';  
   
         if (gethostname(thishost, sizeof(thishost)) == -1)          if (gethostname(thishost, sizeof(thishost)) == -1)
                 fatal("gethostname failed");                  fatal("gethostname failed");
Line 396 
Line 394 
   
                 memset(timebuf, 0, sizeof(timebuf));                  memset(timebuf, 0, sizeof(timebuf));
                 ctime_r(&cf->file_ent->ce_mtime, timebuf);                  ctime_r(&cf->file_ent->ce_mtime, timebuf);
                 if (timebuf[strlen(timebuf) - 1] == '\n')                  timebuf[strcspn(timebuf, "\n")] = '\0';
                         timebuf[strlen(timebuf) - 1] = '\0';  
   
                 (void)xasprintf(&entry, "/%s/%s/%s/%s/%s",                  (void)xasprintf(&entry, "/%s/%s/%s/%s/%s",
                     cf->file_name, rbuf, timebuf,                      cf->file_name, rbuf, timebuf,

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40