Commit 1a0db1b5 authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by Mukund Sivaraman

gimp_md5_get_digest() is deprecated; using GChecksum instead.

2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/lcms.c: gimp_md5_get_digest() is deprecated;
        using GChecksum instead.


svn path=/trunk/; revision=25294
parent 9ed6b3c7
2008-03-28 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/lcms.c: gimp_md5_get_digest() is deprecated;
using GChecksum instead.
2008-03-28 Mukund Sivaraman <muks@mukund.org>
Fixes for some Sparse reported issues in app, libgimp*/
......
......@@ -733,9 +733,16 @@ lcms_calculate_checksum (const gchar *data,
guchar *digest)
{
if (digest)
gimp_md5_get_digest (data + sizeof (icHeader),
len - sizeof (icHeader),
digest);
{
GChecksum *md5 = g_checksum_new (G_CHECKSUM_MD5);
gsize length;
g_checksum_update (md5, (guchar *) data + sizeof (icHeader),
len - sizeof (icHeader));
g_checksum_get_digest (md5, digest, &length);
g_checksum_free (md5);
}
}
static cmsHPROFILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment