changeset 972:e33f0312de6e

grep: s/astrcat/x&/g
author Strake <strake888@gmail.com>
date Sat, 27 Jul 2013 00:50:29 -0500
parents 31e91deb0824
children d1768175ce1d
files toys/pending/grep.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/toys/pending/grep.c	Sun Jun 08 10:15:17 2003 -0500
+++ b/toys/pending/grep.c	Sat Jul 27 00:50:29 2013 -0500
@@ -107,8 +107,8 @@
 
 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);
 }