projects
/
fll
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64583c5
)
Bugfix: Byte Dump start point needs to actually seek the requested start point.
author
Kevin Day
<thekevinday@gmail.com>
Sat, 24 Oct 2020 23:57:56 +0000
(18:57 -0500)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/level_3/byte_dump/c/private-byte_dump.c
b/level_3/byte_dump/c/private-byte_dump.c
index 9494c5a97c8598e4b1e7cf92fe86223340207820..1005073a6a6c811b03fb7de0a1b3a86bb44e0a95 100644
(file)
--- 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);