diff options
author | peter <peter@FreeBSD.org> | 1997-08-22 06:57:30 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-08-22 06:57:30 +0000 |
commit | 824521f8bf7b3d21f01e324253d95a5cd8984a88 (patch) | |
tree | b2e60d3ef8021655f7efb60d30cbea9d9bb2e0dd /contrib/cvs | |
parent | 40cf595fb5675823958d29e99fee92778d3a7f2d (diff) | |
download | FreeBSD-src-824521f8bf7b3d21f01e324253d95a5cd8984a88.zip FreeBSD-src-824521f8bf7b3d21f01e324253d95a5cd8984a88.tar.gz |
Fix a braino in the Attic/ removal code for $CVSHeader$ that originated
from XFree86. I think this was harmless, the strncmp happened always
rather than being optimised out.
Submitted by: jdp
Diffstat (limited to 'contrib/cvs')
-rw-r--r-- | contrib/cvs/src/rcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cvs/src/rcs.c b/contrib/cvs/src/rcs.c index 74beca0..e87a3ae 100644 --- a/contrib/cvs/src/rcs.c +++ b/contrib/cvs/src/rcs.c @@ -4389,7 +4389,7 @@ getfullCVSname(CVSname, pathstore) *pathstore = xstrdup(CVSname); if ((c = strrchr(*pathstore, '/')) != NULL) { - if (alen >= *pathstore - c) { + if (c - *pathstore >= alen) { if (!strncmp(c - alen, ATTIC, alen)) { while (*c != '\0') { *(c - alen) = *c; |