summaryrefslogtreecommitdiff
path: root/implicit.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-06-04 06:30:27 +0000
committerPaul Smith <psmith@gnu.org>2009-06-04 06:30:27 +0000
commite4c80a89471e132e565c7fa77e0d830b1687ff0e (patch)
treeeeb19eaf947791c834620ff72c9b80e77d9fcc8b /implicit.c
parente24e70baa78c1bef74924d36d5b78eeff775c43d (diff)
downloadmake-e4c80a89471e132e565c7fa77e0d830b1687ff0e.tar.gz
- Modify access of config and gnulib Savannah modules to use GIT
- Fix Savannah bug #24655. - Fix Savannah bug #24588. - Fix Savannah bug #24277. - Fix Savannah bug #25697. - Fix Savannah bug #25694. - Fix Savannah bug #25460. - Fix Savannah bug #26207. - Fix Savannah bug #25712. - Fix Savannah bug #26593. - Fix various doc issues.
Diffstat (limited to 'implicit.c')
-rw-r--r--implicit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/implicit.c b/implicit.c
index 4211e3b1..02b1a91b 100644
--- a/implicit.c
+++ b/implicit.c
@@ -917,7 +917,8 @@ pattern_search (struct file *file, int archive,
for (ri = 0; ri < rule->num; ++ri)
if (ri != matches[foundrule])
{
- char *p = alloca (rule->lens[ri] + fullstemlen + 1);
+ char *nm = alloca (rule->lens[ri] + fullstemlen + 1);
+ char *p = nm;
struct file *f;
struct dep *new = alloc_dep ();
@@ -929,7 +930,7 @@ pattern_search (struct file *file, int archive,
p += fullstemlen;
memcpy (p, rule->suffixes[ri],
rule->lens[ri] - (rule->suffixes[ri] - rule->targets[ri])+1);
- new->name = strcache_add (p);
+ new->name = strcache_add (nm);
new->file = enter_file (new->name);
new->next = file->also_make;