diff options
author | Paul Smith <psmith@gnu.org> | 2002-10-05 13:45:47 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-10-05 13:45:47 +0000 |
commit | 47cd8d4624b60d3462991c436c961e0721cd278b (patch) | |
tree | 897bc298ea2cd924c12f029d6b699a2c7adaa84b /expand.c | |
parent | d1d9c0274bf49bac2cf5293caef54f474cced796 (diff) | |
download | gunmake-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |