ecore-drm: Fix issue of edid parsing not ignoring string
authorChris Michael <cp.michael@samsung.com>
Tue, 12 May 2015 15:51:01 +0000 (11:51 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 12 May 2015 16:07:31 +0000 (12:07 -0400)
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 <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm_output.c

index a76a8ec..0d4ace3 100644 (file)
@@ -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