[Toybox] [patch] grep: s/astrcat/x&/g

Strake strake888 at gmail.com
Wed Jul 24 15:54:47 PDT 2013


# HG changeset patch
# User Strake
# Date 1374665513 18000
# Node ID 16ed6e15cd35c0d9798150e769de3155dc6a2e9b
# Parent  7fd031a672f6f6835373b75d0987a61da2c8d3bc
grep: s/astrcat/x&/g

diff -r 7fd031a672f6 -r 16ed6e15cd35 toys/pending/grep.c
--- a/toys/pending/grep.c	Sun Jun 08 10:15:17 2003 -0500
+++ b/toys/pending/grep.c	Wed Jul 24 06:31:53 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);
 }

 1374706487.0


More information about the Toybox mailing list