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:
parent
40cf595fb5
commit
824521f8bf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user