From 918556e05b677ad58fe3530a641844d03d3f144b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 Apr 2014 05:16:07 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_drm_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/blueshift_drm_c.c b/src/blueshift_drm_c.c index 4775166..5da1481 100644 --- a/src/blueshift_drm_c.c +++ b/src/blueshift_drm_c.c @@ -430,7 +430,7 @@ long blueshift_drm_get_edid(int connection, int connector_index, char* edid, lon uint32_t n = (uint32_t)size / 2; uint32_t i; rc += blob->length; - if (n < blob->length) + if (n > blob->length) n = blob->length; for (i = 0; i < n ; i++) { -- cgit v1.2.3-70-g09d2