aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorStrake <strake888@gmail.com>2013-07-27 00:50:29 -0500
committerStrake <strake888@gmail.com>2013-07-27 00:50:29 -0500
commit5335d807defb4cd9e61498c61a8d2ca0f73bb916 (patch)
tree6f24198fbd78e04e9763d296f25db10306cace96 /toys
parent0dbd779b58602d7eaded0bd02399daf62adc0fd4 (diff)
downloadtoybox-5335d807defb4cd9e61498c61a8d2ca0f73bb916.tar.gz
grep: s/astrcat/x&/g
Diffstat (limited to 'toys')
-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);
}