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

Diff for /src/usr.bin/rdist/docmd.c between version 1.25 and 1.26

version 1.25, 2012/11/12 01:14:41 version 1.26, 2014/07/05 05:05:51
Line 724 
Line 724 
                         message(MT_CHANGE, "special \"%s\"", buf);                          message(MT_CHANGE, "special \"%s\"", buf);
                         if (*env) {                          if (*env) {
                                 size_t len = strlen(*env) + strlen(name) + 2;                                  size_t len = strlen(*env) + strlen(name) + 2;
                                 *env = (char *) xrealloc(*env, len);                                  *env = xrealloc(*env, len);
                                 (void) strlcat(*env, name, len);                                  (void) strlcat(*env, name, len);
                                 (void) strlcat(*env, ":", len);                                  (void) strlcat(*env, ":", len);
                         }                          }
Line 767 
Line 767 
         env = NULL;          env = NULL;
         for (sc = sbcmds; sc != NULL; sc = sc->sc_next) {          for (sc = sbcmds; sc != NULL; sc = sc->sc_next) {
                 if (sc->sc_type == CMDSPECIAL) {                  if (sc->sc_type == CMDSPECIAL) {
                         env = (char *) xmalloc(sizeof(E_FILES) + 3);                          env = xmalloc(sizeof(E_FILES) + 3);
                         (void) snprintf(env, sizeof(E_FILES) + 3,                          (void) snprintf(env, sizeof(E_FILES) + 3,
                                         "%s='", E_FILES);                                          "%s='", E_FILES);
                         break;                          break;
Line 843 
Line 843 
   
                                 /* allocate and compile n_regex as needed */                                  /* allocate and compile n_regex as needed */
                                 if (nl->n_regex == NULL) {                                  if (nl->n_regex == NULL) {
                                         nl->n_regex = (regex_t *)                                          nl->n_regex = xmalloc(sizeof(regex_t));
                                             xmalloc(sizeof(regex_t));  
                                         ecode = regcomp(nl->n_regex, nl->n_name,                                          ecode = regcomp(nl->n_regex, nl->n_name,
                                                         REG_NOSUB);                                                          REG_NOSUB);
                                 }                                  }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26