Do no try to pretend we're at the end of anything unless we're at the end
[openssl.git] / crypto / evp / bio_md.c
index 27ec62f..76ff9fe 100644 (file)
@@ -153,7 +153,7 @@ static int md_write(BIO *b, const char *in, int inl)
                {
                if (ret > 0)
                        {
-                       EVP_DigestUpdate(ctx,(unsigned char *)in,
+                       EVP_DigestUpdate(ctx,(const unsigned char *)in,
                                (unsigned int)ret);
                        }
                }