From 2cbfa1024a838447643376ecc1dc148a19d722a5 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 15 Jan 1995 16:33:35 +0000 Subject: (variable_expand): Fix braino in last change. --- expand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'expand.c') diff --git a/expand.c b/expand.c index 867cf91..d2d798e 100644 --- a/expand.c +++ b/expand.c @@ -256,7 +256,7 @@ variable_expand (line) any variable references inside are now expanded. Is the resultant text a substitution reference? */ - colon = index (beg, ':'); + colon = lindex (beg, end, ':'); if (colon != 0) { /* This looks like a substitution reference: $(FOO:A=B). */ -- cgit v1.2.3