diff options
| author | Peter Holm <pho@FreeBSD.org> | 1999-08-15 19:21:29 +0000 |
|---|---|---|
| committer | Peter Holm <pho@FreeBSD.org> | 1999-08-15 19:21:29 +0000 |
| commit | 91289ebc39c19da4ed72c53c6407e1cb36091bdc (patch) | |
| tree | 77a0a6b0c858ef9b7b4a9ab0bdd272cecd2ac179 /lib/libc | |
| parent | 878c351a1cba6d9171fbf8df233b13eb231f8b69 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/fts-compat.c | 2 | ||||
| -rw-r--r-- | lib/libc/gen/fts.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/fts-compat.c b/lib/libc/gen/fts-compat.c index 16d05d9f3d66..da88ed139460 100644 --- a/lib/libc/gen/fts-compat.c +++ b/lib/libc/gen/fts-compat.c @@ -748,7 +748,7 @@ mem1: saved_errno = errno; * state. */ if (ISSET(FTS_NOCHDIR)) { - if (cp - 1 > sp->fts_path) + if (len == sp->fts_pathlen) --cp; *cp = '\0'; } diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c index 16d05d9f3d66..da88ed139460 100644 --- a/lib/libc/gen/fts.c +++ b/lib/libc/gen/fts.c @@ -748,7 +748,7 @@ mem1: saved_errno = errno; * state. */ if (ISSET(FTS_NOCHDIR)) { - if (cp - 1 > sp->fts_path) + if (len == sp->fts_pathlen) --cp; *cp = '\0'; } |
