commit bash-20111104 snapshot

This commit is contained in:
Chet Ramey
2012-01-09 08:31:41 -05:00
parent 77638cbf4e
commit 631b20c609
63 changed files with 24544 additions and 127 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ strsub (string, pat, rep, global)
if (replen)
RESIZE_MALLOCED_BUFFER (temp, templen, replen, tempsize, (replen * 2));
for (r = rep; *r; )
for (r = rep; *r; ) /* can rep == "" */
temp[templen++] = *r++;
i += patlen ? patlen : 1; /* avoid infinite recursion */