From 824521f8bf7b3d21f01e324253d95a5cd8984a88 Mon Sep 17 00:00:00 2001 From: peter 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;