From: Kevin Day Date: Sat, 24 Oct 2020 23:57:56 +0000 (-0500) Subject: Bugfix: Byte Dump start point needs to actually seek the requested start point. X-Git-Tag: 0.5.1~13 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=f3ef7d0bf1210f8e94c0a19771c4074377f40df9;p=fll Bugfix: Byte Dump start point needs to actually seek the requested start point. The start point is correctly being calculated but the initial read is not being performed. This results in an incorrect display. --- diff --git a/level_3/byte_dump/c/private-byte_dump.c b/level_3/byte_dump/c/private-byte_dump.c index 9494c5a..1005073 100644 --- a/level_3/byte_dump/c/private-byte_dump.c +++ b/level_3/byte_dump/c/private-byte_dump.c @@ -33,6 +33,10 @@ extern "C" { if (data.first > 0) { cell.row = data.first / data.width; offset = data.first % data.width; + + char skip[data.first]; + + read(file.id, &skip, data.first); } memset(&character_array, 0, sizeof(f_utf_character_t) * data.width);