aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/pending/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/pending/grep.c b/toys/pending/grep.c
index 6f69bdee..ae38988f 100644
--- a/toys/pending/grep.c
+++ b/toys/pending/grep.c
@@ -107,8 +107,8 @@ char *regfix (char *re_xs) {
void addRE (char *x) {
if (toys.optflags & FLAG_F) x = regfix (x);
- if (TT.re_xs) TT.re_xs = astrcat (TT.re_xs, "|");
- TT.re_xs = astrcat (TT.re_xs, x);
+ if (TT.re_xs) TT.re_xs = xastrcat (TT.re_xs, "|");
+ TT.re_xs = xastrcat (TT.re_xs, x);
if (toys.optflags & FLAG_F) free (x);
}