From f3ef7d0bf1210f8e94c0a19771c4074377f40df9 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 24 Oct 2020 18:57:56 -0500 Subject: [PATCH] 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. --- level_3/byte_dump/c/private-byte_dump.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 1.8.3.1