[gnome-color-manager] trivial: correctly construct the profile id when a session profile has an embedded profile
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: correctly construct the profile id when a session profile has an embedded profile
- Date: Tue, 26 Apr 2011 17:16:19 +0000 (UTC)
commit 8ec6ff484140b10ac41271944a3c0f0ceb40be05
Author: Richard Hughes <richard hughsie com>
Date: Tue Apr 26 18:10:19 2011 +0100
trivial: correctly construct the profile id when a session profile has an embedded profile
src/gcm-session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-session.c b/src/gcm-session.c
index c6a3e02..3182ddb 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -1224,7 +1224,7 @@ gcm_session_get_precooked_md5 (cmsHPROFILE lcms_profile)
/* convert to a hex string */
md5 = g_new0 (gchar, 32 + 1);
for (i=0; i<16; i++)
- g_snprintf (md5 + i*2, 3, "%x", profile_id[i]);
+ g_snprintf (md5 + i*2, 3, "%02x", profile_id[i]);
out:
return md5;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]