summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-07 11:22:54 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-08 14:03:48 -0400
commit8a3581f13abf4ef3f429b9c871f0b9d783d8f171 (patch)
tree3df3d13494c91d8aecd583a4840dd778f13e0172
parentfbc7f2235c0a2080655e5e71270641b205423db2 (diff)
downloadefl-8a3581f13abf4ef3f429b9c871f0b9d783d8f171.tar.gz
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>
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index 77fd73496e..e118ca84a3 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -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