summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Höch <florian.hoech@gmx.de>2014-03-28 14:10:57 +0100
committerRui Matos <tiagomatos@gmail.com>2014-04-26 19:33:06 +0200
commitc32362174345c8018c178dbbecda29ec464257ed (patch)
tree10bdb3f4c4b3f4c8e83f7812c69961edd0081e98
parenta8988fff0a216799c5b835a578f6eb46373fbc5b (diff)
downloadgnome-settings-daemon-c32362174345c8018c178dbbecda29ec464257ed.tar.gz
EDID strings can be up to 13 bytes
The EDID specification allows up to 13 bytes for text blocks. https://bugzilla.gnome.org/show_bug.cgi?id=727240
-rw-r--r--plugins/color/gcm-edid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/color/gcm-edid.c b/plugins/color/gcm-edid.c
index 2599d6cd..e73f4385 100644
--- a/plugins/color/gcm-edid.c
+++ b/plugins/color/gcm-edid.c
@@ -240,9 +240,9 @@ gcm_edid_parse_string (const guint8 *data)
guint i;
guint replaced = 0;
- /* this is always 12 bytes, but we can't guarantee it's null
+ /* this is always 13 bytes, but we can't guarantee it's null
* terminated or not junk. */
- text = g_strndup ((const gchar *) data, 12);
+ text = g_strndup ((const gchar *) data, 13);
/* remove insane newline chars */
g_strdelimit (text, "\n\r", '\0');