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

Diff for /src/usr.bin/cvs/trigger.c between version 1.21 and 1.22

version 1.21, 2014/01/08 13:23:55 version 1.22, 2015/01/16 06:40:07
Line 382 
Line 382 
         regex_t preg;          regex_t preg;
         struct trigger_list *list;          struct trigger_list *list;
         struct trigger_line *tline;          struct trigger_line *tline;
         char fpath[MAXPATHLEN];          char fpath[PATH_MAX];
         char *currentline, *defaultline = NULL, *nline, *p, *q, *regex;          char *currentline, *defaultline = NULL, *nline, *p, *q, *regex;
   
         if (strcmp(file, CVS_PATH_EDITINFO) == 0 ||          if (strcmp(file, CVS_PATH_EDITINFO) == 0 ||
Line 391 
Line 391 
         else          else
                 allow_all = 1;                  allow_all = 1;
   
         (void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", current_cvsroot->cr_dir,          (void)xsnprintf(fpath, PATH_MAX, "%s/%s", current_cvsroot->cr_dir,
             file);              file);
   
         if ((fp = fopen(fpath, "r")) == NULL) {          if ((fp = fopen(fpath, "r")) == NULL) {
Line 535 
Line 535 
 void  void
 cvs_trigger_loginfo_header(BUF *buf, char *repo)  cvs_trigger_loginfo_header(BUF *buf, char *repo)
 {  {
         char *dir, pwd[MAXPATHLEN];          char *dir, pwd[PATH_MAX];
         char hostname[MAXHOSTNAMELEN];          char hostname[HOST_NAME_MAX+1];
   
         if (gethostname(hostname, sizeof(hostname)) == -1) {          if (gethostname(hostname, sizeof(hostname)) == -1) {
                 fatal("cvs_trigger_loginfo_header: gethostname failed %s",                  fatal("cvs_trigger_loginfo_header: gethostname failed %s",

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22