summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-07-25 22:09:25 +0000
committerRoland McGrath <roland@redhat.com>1994-07-25 22:09:25 +0000
commit9a3666d550583ccc8320b784cb03e5197a803406 (patch)
tree249854cc0ef556739a080244cc39b1a1c1c7728c
parent90dffad2cce31e3f83ecac11ebe4b7b5bfd857ca (diff)
downloadgunmake-9a3666d550583ccc8320b784cb03e5197a803406.tar.gz
(set_file_variables): Add parens in length computation in .SUFFIXES dep
loop to quiet compiler warning. From Jim Meyering.
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 3967302..266bdea 100644
--- a/commands.c
+++ b/commands.c
@@ -87,7 +87,7 @@ set_file_variables (file)
for (d = enter_file (".SUFFIXES")->deps; d != 0; d = d->next)
{
unsigned int slen = strlen (dep_name (d));
- if (len > slen && !strncmp (dep_name (d), name + len - slen, slen))
+ if (len > slen && !strncmp (dep_name (d), name + (len - slen), slen))
{
file->stem = savestring (name, len - slen);
break;