summaryrefslogtreecommitdiffstats
path: root/src/blueshift_drm_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blueshift_drm_c.c')
-rw-r--r--src/blueshift_drm_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blueshift_drm_c.c b/src/blueshift_drm_c.c
index 1d04f86..8888146 100644
--- a/src/blueshift_drm_c.c
+++ b/src/blueshift_drm_c.c
@@ -427,9 +427,9 @@ long blueshift_drm_get_edid(int connection, int connector_index, char* edid, lon
drmModePropertyBlobRes* blob = drmModeGetPropertyBlob(fd, connector->prop_values[prop_i]);
if (hexadecimal)
{
- rc += blob->length;
uint32_t n = size / 2;
uint32_t i;
+ rc += blob->length;
if (n < blob->length)
n = blob->length;
for (i = 0; i < n ; i++)