diff options
Diffstat (limited to 'camel/md5-utils.c')
-rw-r--r-- | camel/md5-utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/camel/md5-utils.c b/camel/md5-utils.c index 382aadffec..7363eaec40 100644 --- a/camel/md5-utils.c +++ b/camel/md5-utils.c @@ -335,11 +335,10 @@ md5_get_digest_from_stream (CamelStream *stream, guchar digest[16]) md5_init (&ctx); - /* FIXME (the NULL) */ - nb_bytes_read = camel_stream_read (stream, tmp_buf, 1024, NULL); + nb_bytes_read = camel_stream_read (stream, tmp_buf, 1024); while (nb_bytes_read) { md5_update (&ctx, tmp_buf, nb_bytes_read); - nb_bytes_read = camel_stream_read (stream, tmp_buf, 1024, NULL); + nb_bytes_read = camel_stream_read (stream, tmp_buf, 1024); } md5_final (&ctx, digest); |