]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
play: Fix off-by-one in jmp 100.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 Oct 2015 17:52:12 +0000 (17:52 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Oct 2015 15:13:43 +0000 (16:13 +0100)
The command "jmp 100" did not work as expected (switch to the next
file) but caused the following error

repos failed: Invalid argument

The problem was that ->start_chunk was set to pt->num_chunks which
exceeds the maximal valid chunk number by one.

This commit special cases the value 100 to make "jmp 100" equivalent to
"next".


No differences found