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
commit81f3e4babd128f6740d05b371122762924522fb6 (patch)
treeeeb19eaf947791c834620ff72c9b80e77d9fcc8b /implicit.c
parent5b4d419476e9fbda8ea26017f6ec15956d103ed9 (diff)
downloadgunmake-81f3e4babd128f6740d05b371122762924522fb6.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 4211e3b..02b1a91 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;