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

Diff for /src/usr.bin/cvs/log.c between version 1.36 and 1.37

version 1.36, 2006/07/07 17:37:17 version 1.37, 2007/01/31 21:07:35
Line 90 
Line 90 
                         prefix[0] = 'C';                          prefix[0] = 'C';
         } else if (cvs_command != NULL) {          } else if (cvs_command != NULL) {
                 if (level == LP_ABORT)                  if (level == LP_ABORT)
                         snprintf(prefix, sizeof(prefix), "%s [%s aborted]",                          (void)xsnprintf(prefix, sizeof(prefix),
                             __progname, cmdname);                              "%s [%s aborted]", __progname, cmdname);
                 else                  else
                         snprintf(prefix, sizeof(prefix), "%s %s", __progname,                          (void)xsnprintf(prefix, sizeof(prefix), "%s %s",
                             cmdname);                              __progname, cmdname);
         } else /* just use the standard strlcpy */          } else /* just use the standard strlcpy */
                 strlcpy(prefix, __progname, sizeof(prefix));                  strlcpy(prefix, __progname, sizeof(prefix));
   
         vsnprintf(buf, sizeof(buf), fmt, vap);          vsnprintf(buf, sizeof(buf), fmt, vap);
         if (level == LP_ERRNO) {          if (level == LP_ERRNO) {
                 snprintf(ebuf, sizeof(ebuf), ": %s", strerror(errno));                  (void)xsnprintf(ebuf, sizeof(ebuf), ": %s", strerror(errno));
                 strlcat(buf, ebuf, sizeof(buf));                  strlcat(buf, ebuf, sizeof(buf));
         }          }
   

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37