diff options
| author | Wolfram Schneider <wosch@FreeBSD.org> | 2001-01-06 18:17:06 +0000 |
|---|---|---|
| committer | Wolfram Schneider <wosch@FreeBSD.org> | 2001-01-06 18:17:06 +0000 |
| commit | 47ecee5e83a73a7b8f9e0fa78beab0ee6392c384 (patch) | |
| tree | 445d5cb44a9637af2b56fc337048b2afc4718425 /usr.bin | |
| parent | 0c95c70577625851a3ccf05da8396cfe4d278279 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/locate/locate/fastfind.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/locate/locate/fastfind.c b/usr.bin/locate/locate/fastfind.c index 68f8a86d2b2b..8e29355857b9 100644 --- a/usr.bin/locate/locate/fastfind.c +++ b/usr.bin/locate/locate/fastfind.c @@ -219,11 +219,12 @@ fastfind p = path + count; foundchar = p - 1; - for (;;) { #ifdef FF_MMAP + for (; len > 0;) { c = (u_char)*paddr++; len--; #else + for (;;) { c = getc(fp); #endif /* FF_MMAP */ /* |
