From 47cd8d4624b60d3462991c436c961e0721cd278b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 5 Oct 2002 13:45:47 +0000 Subject: Fix core dump on malformed variable line (Debian bug #81656) Allow SysV-style variable references to use {} in addition to (). Add variable.h to the POTFILES.in since it has a translatable string. --- expand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'expand.c') diff --git a/expand.c b/expand.c index 6722e1b..3027f47 100644 --- a/expand.c +++ b/expand.c @@ -286,7 +286,7 @@ variable_expand_string (line, string, length) char *subst_beg, *subst_end, *replace_beg, *replace_end; subst_beg = colon + 1; - subst_end = strchr (subst_beg, '='); + subst_end = lindex (subst_beg, end, '='); if (subst_end == 0) /* There is no = in sight. Punt on the substitution reference and treat this as a variable name containing -- cgit v1.2.3