From 956eb9318beeec16396e7daf94ce88935db3a901 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 12 May 2015 11:51:01 -0400 Subject: [PATCH] ecore-drm: Fix issue of edid parsing not ignoring string Summary: When we are parsing the edid string, if the string is random junk, then we need to ignore it. Prior to this commit, we were not setting the returned text properly. @fix Signed-off-by: Chris Michael --- src/lib/ecore_drm/ecore_drm_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index a76a8ec..0d4ace3 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c @@ -100,7 +100,7 @@ _ecore_drm_output_edid_parse_string(const uint8_t *data, char text[]) } } - if (rep > 4) text[i] = '\0'; + if (rep > 4) text[0] = '\0'; } static int -- 2.7.4