diff toys/pending/grep.c @ 972:e33f0312de6e

grep: s/astrcat/x&/g
author Strake <strake888@gmail.com>
date Sat, 27 Jul 2013 00:50:29 -0500
parents 31e91deb0824
children 0666d42df954
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);
 }