Off by one error in reading mmap data.

Submitted by: Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>
This commit is contained in:
wosch 2001-01-06 18:17:06 +00:00
parent e3a6e9b497
commit 0a1aed2717

View File

@ -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 */
/*