(variable_expand): Fix braino in last change. 3.72.4
authorRoland McGrath <roland@redhat.com>
Sun, 15 Jan 1995 16:33:35 +0000 (16:33 +0000)
committerRoland McGrath <roland@redhat.com>
Sun, 15 Jan 1995 16:33:35 +0000 (16:33 +0000)
expand.c

index 867cf914b2a8270b745c6c06f74c93b6dea22ead..d2d798e32b49d609e34ac8f324e5dd4c4f1f52cb 100644 (file)
--- 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).  */