summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-22 06:57:30 +0000
committerpeter <peter@FreeBSD.org>1997-08-22 06:57:30 +0000
commit824521f8bf7b3d21f01e324253d95a5cd8984a88 (patch)
treeb2e60d3ef8021655f7efb60d30cbea9d9bb2e0dd /contrib/cvs/src
parent40cf595fb5675823958d29e99fee92778d3a7f2d (diff)
downloadFreeBSD-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/src')
-rw-r--r--contrib/cvs/src/rcs.c2
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;
OpenPOWER on IntegriCloud