X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmd5.c;h=ec1337ca6eafd02af152163967f7aec95d12ba27;hb=2003d10ed3d849e2e973337bb4adf43fa769e6ae;hp=901ca5832ab8bea71bd6bb522646163d4d26ea9f;hpb=a1655b870904de973c366d85ebdc8adde4ef5e1e;p=chise%2Fxemacs-chise.git.1 diff --git a/src/md5.c b/src/md5.c index 901ca58..ec1337c 100644 --- a/src/md5.c +++ b/src/md5.c @@ -579,9 +579,9 @@ file-coding or Mule support. Otherwise, they are ignored. while (1) { Bufbyte tempbuf[1024]; /* some random amount */ - ssize_t size_in_bytes = + Lstream_data_count size_in_bytes = Lstream_read (XLSTREAM (instream), tempbuf, sizeof (tempbuf)); - if (!size_in_bytes) + if (size_in_bytes <= 0) break; /* Process the bytes. */