diff options
author | Florian Höch <florian.hoech@gmx.de> | 2014-03-28 14:25:31 +0100 |
---|---|---|
committer | Florian Höch <florian.hoech@gmx.de> | 2014-03-28 14:25:31 +0100 |
commit | 4a12643c4a8ce3219bf5823df934d3604069fc9b (patch) | |
tree | d4ffbea0eea9098b336d68445f2acb6601102b10 /lib | |
parent | 86be2ba82e4a2d20b60671da696f8d03fb5a454e (diff) | |
download | colord-4a12643c4a8ce3219bf5823df934d3604069fc9b.tar.gz |
EDID strings can be up to 13 bytes
The EDID specification allows up to 13 bytes for text blocks.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/colord/cd-edid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/colord/cd-edid.c b/lib/colord/cd-edid.c index b3d33fa..4bca8dc 100644 --- a/lib/colord/cd-edid.c +++ b/lib/colord/cd-edid.c @@ -472,9 +472,9 @@ cd_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'); |