diff options
author | 53hornet <atc@53hor.net> | 2021-08-05 11:48:14 -0400 |
---|---|---|
committer | 53hornet <atc@53hor.net> | 2021-08-05 11:48:14 -0400 |
commit | 6228de3850abc61ac3ecf04ab7d9bb414af1ea7c (patch) | |
tree | 7894e98d83b6dbd8d2a967651d53be077e208444 /src | |
parent | 5befe69b3f4ae57d4dbd366268acedb48b63678f (diff) | |
download | rexdump-master.tar.xz rexdump-master.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index fb030d0..13f15d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { > 0 } { // write index - print!("{:010}: ", idx); + print!("{:010}: ", idx * CHUNK_SIZE); + idx += 1; // write hex for byte in &chunk { @@ -30,7 +31,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { // write ascii println!("{}", String::from_utf8_lossy(&chunk).replace('\n', "⏎")); - idx += CHUNK_SIZE; chunk.clear(); } |