diff options
| author | Bruce A. Mah <bmah@FreeBSD.org> | 2002-09-06 19:51:58 +0000 |
|---|---|---|
| committer | Bruce A. Mah <bmah@FreeBSD.org> | 2002-09-06 19:51:58 +0000 |
| commit | 2ca720053b7b8428b1d114a74e8b737ed95fae67 (patch) | |
| tree | 011e0ffa4ed51ebf7fb46f41f172be3c666558bb /lib/libmd/mdXhl.c | |
| parent | facfd6e8ed46db63d12a1d06569cb7df6c52cf80 (diff) | |
Notes
Diffstat (limited to 'lib/libmd/mdXhl.c')
| -rw-r--r-- | lib/libmd/mdXhl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libmd/mdXhl.c b/lib/libmd/mdXhl.c index 439e9fff7b89..ae968136ce93 100644 --- a/lib/libmd/mdXhl.c +++ b/lib/libmd/mdXhl.c @@ -66,6 +66,7 @@ MDXFileChunk(const char *filename, char *buf, off_t ofs, off_t len) len = stbuf.st_size - ofs; if (lseek(f, ofs, SEEK_SET) < 0) return 0; n = len; + i = 0; while (n > 0) { if (n > sizeof(buffer)) i = read(f, buffer, sizeof(buffer)); |
