From 676e0d55070c92351dd9e59a1d840998e9184a78 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 22 Aug 1997 06:57:30 +0000 Subject: [PATCH] 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 --- contrib/cvs/src/rcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;