ecore-drm: Fix issue with edid_parse_string truncating strings

Summary: We should only truncate the string if it's greater than 4

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-04-07 11:22:54 -04:00 committed by Stefan Schmidt
parent ec12d25057
commit 40945aa10c
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ _ecore_drm_output_edid_parse_string(const uint8_t *data, char text[])
}
}
if (rep > 0) text[i] = '\0';
if (rep > 4) text[i] = '\0';
}
static int