diff options
Diffstat (limited to 'bin/ed/glbl.c')
-rw-r--r-- | bin/ed/glbl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c index 5524700..dfb44d2 100644 --- a/bin/ed/glbl.c +++ b/bin/ed/glbl.c @@ -60,7 +60,7 @@ build_active_list(int isgcmd) return ERR; if (isbinary) NUL_TO_NEWLINE(s, lp->len); - if (!regexec(pat, s, 0, NULL, 0) == isgcmd && + if (!(regexec(pat, s, 0, NULL, 0) == isgcmd) && set_active_node(lp) < 0) return ERR; } @@ -153,7 +153,7 @@ set_active_node(line_t *lp) if (active_list != NULL) { #endif if ((ts = (line_t **) realloc(active_list, - (ti += MINBUFSZ) * sizeof(line_t **))) == NULL) { + (ti += MINBUFSZ) * sizeof(line_t *))) == NULL) { fprintf(stderr, "%s\n", strerror(errno)); errmsg = "out of memory"; SPL0(); |