From 2c9b1d2817eaeaf934abe2a41f65bb43fef3ea8b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 Apr 2014 05:05:21 +0200 Subject: typo 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blueshift_drm_c.c b/src/blueshift_drm_c.c index 1f010c0..987dd58 100644 --- a/src/blueshift_drm_c.c +++ b/src/blueshift_drm_c.c @@ -403,7 +403,9 @@ const char* blueshift_drm_get_connector_type_name(int connection, int connector_ * * @param connection The identifier for the connection to the card * @param connector_index The index of the connector - * @param edid Storage location for the EDID, it should be 256 bytes, 512 bytes + zero termination if hex + * @param edid Storage location for the EDID, it should be 128 bytes, + * or 256 bytes if you are counting on the depricated EDID 2.0, + * If hexadecimal, twice that + zero termiation. * @param size The size allocated to `edid` excluding your zero termination * @param hexadecimal Whether to convert to hexadecimal representation, this is preferable * @return The length of the found value, 0 if none, as if hex is false @@ -442,7 +444,7 @@ long blueshift_drm_get_edid(int connection, int connector_index, char* edid, lon memcpy(edid, blob->data, (size_t)len * sizeof(char)); } drmModeFreePropertyBlob(blob); - prop_i = connector->count_props; /* stop to for loop */ + prop_i = connector->count_props; /* stop the for-loop */ } drmModeFreeProperty(prop); } -- cgit v1.2.3-70-g09d2