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 1997-08-22 06:57:30 +00:00
parent 40cf595fb5
commit 824521f8bf

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;