mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 18:22:25 +02:00
commit bash-20111104 snapshot
This commit is contained in:
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user