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
This commit is contained in:
Peter Wemm 1997-08-22 06:57:30 +00:00
parent f296f8ebb4
commit 676e0d5507
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28565

View File

@ -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;