diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-12 05:16:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-12 05:16:07 +0200 |
commit | 918556e05b677ad58fe3530a641844d03d3f144b (patch) | |
tree | eba10546232b45786bbbc35a785492cb340bc4a0 | |
parent | m (diff) | |
download | blueshift-918556e05b677ad58fe3530a641844d03d3f144b.tar.gz blueshift-918556e05b677ad58fe3530a641844d03d3f144b.tar.bz2 blueshift-918556e05b677ad58fe3530a641844d03d3f144b.tar.xz |
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/blueshift_drm_c.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |