mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
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
f296f8ebb4
commit
676e0d5507
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28565
@ -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