diff options
Diffstat (limited to 'contrib/cvs/src/rcs.c')
-rw-r--r-- | contrib/cvs/src/rcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cvs/src/rcs.c b/contrib/cvs/src/rcs.c index 74beca0..e87a3ae 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; |