diff options
author | Florian Höch <florian.hoech@gmx.de> | 2014-03-28 14:25:31 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-04-02 11:19:02 +0200 |
commit | 16818d8342f10d80d3425d383fb8e9103a820ad9 (patch) | |
tree | 937c0a6a78a1811200f3b6657b7e33a847344abc | |
parent | f1745688cdd5353f103f925ea0ba8b05be52aed3 (diff) | |
download | colord-16818d8342f10d80d3425d383fb8e9103a820ad9.tar.gz |
EDID strings can be up to 13 bytes
The EDID specification allows up to 13 bytes for text blocks.
-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'); |