X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmd5.c;h=ec1337ca6eafd02af152163967f7aec95d12ba27;hb=56e42ea3f13ae831ffd2e85facdfc5a64a17692e;hp=608ba7b6143a66b2eae47e68dac3b7daf5d32693;hpb=3062d425fac0473eb5aa2efc0bb002f6ce0cb028;p=chise%2Fxemacs-chise.git.1 diff --git a/src/md5.c b/src/md5.c index 608ba7b..ec1337c 100644 --- a/src/md5.c +++ b/src/md5.c @@ -581,7 +581,7 @@ file-coding or Mule support. Otherwise, they are ignored. Bufbyte tempbuf[1024]; /* some random amount */ 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. */