diff options
author | peter <peter@FreeBSD.org> | 1997-08-22 06:59:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-08-22 06:59:08 +0000 |
commit | 345eea963ab7b56221622534e6743c93f06cc096 (patch) | |
tree | b54332de02b1954ac85ad5a7350aa2f38d3af7a3 | |
parent | 824521f8bf7b3d21f01e324253d95a5cd8984a88 (diff) | |
download | FreeBSD-src-345eea963ab7b56221622534e6743c93f06cc096.zip FreeBSD-src-345eea963ab7b56221622534e6743c93f06cc096.tar.gz |
Fix missed optimisation in "Attic/" stripping code in $CVSHeader$
Submitted by: jdp
-rw-r--r-- | gnu/usr.bin/rcs/lib/rcsfnms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/rcs/lib/rcsfnms.c b/gnu/usr.bin/rcs/lib/rcsfnms.c index 8154cdf..2de1c13 100644 --- a/gnu/usr.bin/rcs/lib/rcsfnms.c +++ b/gnu/usr.bin/rcs/lib/rcsfnms.c @@ -177,7 +177,7 @@ Report problems and direct all questions to: #include "rcsbase.h" -libId(fnmsId, "$Id: rcsfnms.c,v 1.7 1997/05/11 05:33:06 peter Exp $") +libId(fnmsId, "$Id: rcsfnms.c,v 1.8 1997/08/19 11:17:37 peter Exp $") static char const *bindex P((char const*,int)); static int fin2open P((char const*, size_t, char const*, size_t, char const*, size_t, RILE*(*)P((struct buf*,struct stat*,int)), int)); @@ -884,7 +884,7 @@ getfullCVSname() int alen = strlen(ATTICDIR); if ((c = strrchr(namebuf, '/')) != NULL) { - if (alen >= namebuf - c) { + if (namebuf - c >= alen) { if (!strncmp(c - alen, ATTICDIR, alen)) { while(*c != '\0') { *(c - alen) = *c; |