diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2019-03-20 00:06:22 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2019-03-20 00:06:22 +0000 |
commit | ceec5c6d538a88867a92d826e33cddae6a80c545 (patch) | |
tree | 6c96d5e3098a822d7a42a81bb51520209887a629 /samples/tests/bt.mixal | |
parent | 5ccc36c2b6a3344bb1ef72307370bbfe300573d3 (diff) | |
download | mdk-ceec5c6d538a88867a92d826e33cddae6a80c545.tar.gz mdk-ceec5c6d538a88867a92d826e33cddae6a80c545.tar.bz2 |
Fix: correctly rewind tape
According to the specification, if M < 0, the tape is skipped backwards M
blocks, or to the beginning of the tape, whichever comes first. In the
implementation, we don't check to verify that we aren't seeking past the
beginning of the file. This causes fseek(3) to fail, and it leaves us at the
position we were at.
Diagnosis and fix by Kevin Brunelle.
Diffstat (limited to 'samples/tests/bt.mixal')
0 files changed, 0 insertions, 0 deletions