summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-05 13:45:47 +0000
committerPaul Smith <psmith@gnu.org>2002-10-05 13:45:47 +0000
commit47cd8d4624b60d3462991c436c961e0721cd278b (patch)
tree897bc298ea2cd924c12f029d6b699a2c7adaa84b /expand.c
parentd1d9c0274bf49bac2cf5293caef54f474cced796 (diff)
downloadgunmake-47cd8d4624b60d3462991c436c961e0721cd278b.tar.gz
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.
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c2
1 files changed, 1 insertions, 1 deletions
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