aboutsummaryrefslogtreecommitdiff
path: root/contrib/cvs
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-08-22 06:57:30 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-08-22 06:57:30 +0000
commit676e0d55070c92351dd9e59a1d840998e9184a78 (patch)
tree6a9df44b7b819926ee6f75f34f5405eb8add6074 /contrib/cvs
parentf296f8ebb4cf68865b9e5eee9784ebedb3c0e96d (diff)
downloadsrc-676e0d55070c92351dd9e59a1d840998e9184a78.tar.gz
src-676e0d55070c92351dd9e59a1d840998e9184a78.zip
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
Notes
Notes: svn path=/head/; revision=28565
Diffstat (limited to 'contrib/cvs')
-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 74beca0c4e37..e87a3aecc245 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;