From 81f3e4babd128f6740d05b371122762924522fb6 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Thu, 4 Jun 2009 06:30:27 +0000 Subject: - 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. --- implicit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'implicit.c') 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; -- cgit v1.2.3