Good catch.

I'm surprised the compiler doesn't whine.

Poul-Henning

>Index: mdXhl.c
>===================================================================
>RCS file: /usr/local/cvsroot/src/lib/libmd/mdXhl.c,v
>retrieving revision 1.16
>diff -u -r1.16 mdXhl.c
>--- mdXhl.c     25 Mar 2002 13:50:40 -0000      1.16
>+++ mdXhl.c     6 Sep 2002 16:02:52 -0000
>@@ -66,6 +66,7 @@
>        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));
>
>
>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to