From bb4d040fadcb76a8828eaf24b4f0557ec11f44fb Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 14 Jul 2007 02:57:46 +0000 Subject: Fix Savannah bug #20452. Add a new feature to the test suite suggested by Icarus Sparry: set a timer before invoking a test, so that if it loops infinitely we will wake up and have a chance to kill the process and continue. --- file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 96aad1d..303f192 100644 --- a/file.c +++ b/file.c @@ -483,6 +483,7 @@ expand_deps (struct file *f) { p = variable_expand (""); variable_buffer_output (p, d->name, strlen (d->name) + 1); + p = variable_buffer; } else { @@ -495,7 +496,8 @@ expand_deps (struct file *f) o = subst_expand (buffer, d->name, "%", "$*", 1, 2, 0); - d->name = strcache_add_len (buffer, o - buffer); + d->name = strcache_add_len (variable_buffer, + o - variable_buffer); d->staticpattern = 0; /* Clear staticpattern so that we don't re-expand %s below. */ } -- cgit v1.2.3