[gnome-settings-daemon] color: When getting the checksum of the EDID, use the whole EDID block



commit adb80fcacccba3bfb40cf1e93e0f9dba5590ee99
Author: Richard Hughes <richard hughsie com>
Date:   Fri Mar 2 11:25:00 2012 +0000

    color: When getting the checksum of the EDID, use the whole EDID block
    
    We want to find the MD5 of the *whole* EDID block to be compatible with other
    session implementations. Quite why I used the second-to-last block in the
    original code is beyond me as the spec says otherwise.

 plugins/color/gcm-edid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gcm-edid.c b/plugins/color/gcm-edid.c
index bb3194d..4f03aa8 100644
--- a/plugins/color/gcm-edid.c
+++ b/plugins/color/gcm-edid.c
@@ -401,7 +401,7 @@ gcm_edid_parse (GcmEdid *edid, const guint8 *data, gsize length, GError **error)
         }
 
         /* calculate checksum */
-        priv->checksum = g_compute_checksum_for_data (G_CHECKSUM_MD5, data, 0x6c);
+        priv->checksum = g_compute_checksum_for_data (G_CHECKSUM_MD5, data, length);
 out:
         return ret;
 }



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