devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=956eb9318beeec16396e7daf94ce88935db3a901

commit 956eb9318beeec16396e7daf94ce88935db3a901
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue May 12 11:51:01 2015 -0400

    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 <cp.mich...@samsung.com>
---
 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 

-- 


Reply via email to