diff options
| author | Chet Ramey <chet.ramey@case.edu> | 2014-02-26 09:36:43 -0500 |
|---|---|---|
| committer | Chet Ramey <chet.ramey@case.edu> | 2014-02-26 09:36:43 -0500 |
| commit | ac50fbac377e32b98d2de396f016ea81e8ee9961 (patch) | |
| tree | f71882366b98fedf1a88a063103219a4935de926 /bracecomp.c | |
| parent | 4539d736f1aff232857a854fd2a68df0c98d9f34 (diff) | |
| download | android_external_bash-ac50fbac377e32b98d2de396f016ea81e8ee9961.tar.gz android_external_bash-ac50fbac377e32b98d2de396f016ea81e8ee9961.tar.bz2 android_external_bash-ac50fbac377e32b98d2de396f016ea81e8ee9961.zip | |
Bash-4.3 distribution sources and documentation
Diffstat (limited to 'bracecomp.c')
| -rw-r--r-- | bracecomp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bracecomp.c b/bracecomp.c index cb218a2..4fbca85 100644 --- a/bracecomp.c +++ b/bracecomp.c @@ -75,8 +75,8 @@ really_munge_braces (array, real_start, real_end, gcd_zero) if (real_start == real_end) { - x = array[real_start] ? sh_backslash_quote (array[real_start] + gcd_zero) - : sh_backslash_quote (array[0]); + x = array[real_start] ? sh_backslash_quote (array[real_start] + gcd_zero, 0, 0) + : sh_backslash_quote (array[0], 0, 0); return x; } @@ -115,7 +115,7 @@ really_munge_braces (array, real_start, real_end, gcd_zero) if (start == end) { x = savestring (array[start] + gcd_zero); - subterm = sh_backslash_quote (x); + subterm = sh_backslash_quote (x, 0, 0); free (x); } else @@ -126,7 +126,7 @@ really_munge_braces (array, real_start, real_end, gcd_zero) x = (char *)xmalloc (tlen + 1); strncpy (x, array[start] + gcd_zero, tlen); x[tlen] = '\0'; - subterm = sh_backslash_quote (x); + subterm = sh_backslash_quote (x, 0, 0); free (x); result_size += strlen (subterm) + 1; result = (char *)xrealloc (result, result_size); |
