]> Kevux Git Server - fll/commitdiff
Bugfix: Byte Dump start point needs to actually seek the requested start point.
authorKevin Day <thekevinday@gmail.com>
Sat, 24 Oct 2020 23:57:56 +0000 (18:57 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 24 Oct 2020 23:57:56 +0000 (18:57 -0500)
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

index 9494c5a97c8598e4b1e7cf92fe86223340207820..1005073a6a6c811b03fb7de0a1b3a86bb44e0a95 100644 (file)
@@ -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);