gimp r25301 - in trunk: . plug-ins/common



Author: neo
Date: Sat Mar 29 16:46:17 2008
New Revision: 25301
URL: http://svn.gnome.org/viewvc/gimp?rev=25301&view=rev

Log:
2008-03-29  Sven Neumann  <sven gimp org>

	* plug-ins/common/lcms.c (lcms_calculate_checksum): fixed use of
	GChecksum.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/lcms.c

Modified: trunk/plug-ins/common/lcms.c
==============================================================================
--- trunk/plug-ins/common/lcms.c	(original)
+++ trunk/plug-ins/common/lcms.c	Sat Mar 29 16:46:17 2008
@@ -735,12 +735,13 @@
   if (digest)
     {
       GChecksum *md5 = g_checksum_new (G_CHECKSUM_MD5);
-      gsize length;
 
-      g_checksum_update (md5, (guchar *) data + sizeof (icHeader),
+      g_checksum_update (md5,
+                         (const guchar *) data + sizeof (icHeader),
                          len - sizeof (icHeader));
 
-      g_checksum_get_digest (md5, digest, &length);
+      len = 16;
+      g_checksum_get_digest (md5, digest, &len);
       g_checksum_free (md5);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]