version 1.25, 2012/11/12 01:14:41 |
version 1.26, 2014/07/05 05:05:51 |
|
|
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); |
} |
} |
|
|
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; |
|
|
|
|
/* 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); |
} |
} |