projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90dffad
)
(set_file_variables): Add parens in length computation in .SUFFIXES dep
author
Roland McGrath
<roland@redhat.com>
Mon, 25 Jul 1994 22:09:25 +0000
(22:09 +0000)
committer
Roland McGrath
<roland@redhat.com>
Mon, 25 Jul 1994 22:09:25 +0000
(22:09 +0000)
loop to quiet compiler warning. From Jim Meyering.
commands.c
patch
|
blob
|
history
diff --git
a/commands.c
b/commands.c
index 396730271981552bd0ae5d03e5bb0b2139d6ed9e..266bdea88169eb2e7f8ba839608e6d097b0eee6b 100644
(file)
--- 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;