Skip to content

Commit

Permalink
Merge pull request #389 from mknos/od-offset
Browse files Browse the repository at this point in the history
od: fix line offsets
  • Loading branch information
briandfoy authored Dec 27, 2023
2 parents 6546144 + f96dd91 commit a8deb84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/od
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ while ($len = read($fh, $buf, 1)) {
print "*\n";
}
$lastline = $data . '|';
$offset1 += length $data;
undef $data;
}

$offset1++;
last if $is_limit;
}
unless (defined $len) {
Expand Down

0 comments on commit a8deb84

Please sign in to comment.