Fix buffer overrun when renaming. Fixes #99

This commit is contained in:
Joshua Bell 2018-12-27 17:07:45 -08:00
parent 43745ad7a6
commit 12ee56c674
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@
* Sort Directory DA: don't need to click before sorting. (#17) * Sort Directory DA: don't need to click before sorting. (#17)
* SELECTOR.LIST created if missing. (#92) * SELECTOR.LIST created if missing. (#92)
* Position desktop icons based on Slot/Drive assignment. (#94) * Position desktop icons based on Slot/Drive assignment. (#94)
* Don't crash after renaming volume. (#99)
* Hardware/Emulator Specific: * Hardware/Emulator Specific:
* IIc Plus: don't spin slot 5 drives constantly. (Use Special > Check Drives) (#25) * IIc Plus: don't spin slot 5 drives constantly. (Use Special > Check Drives) (#25)
* Macintosh LC IIe Option Card: prevent crash. (#93) * Macintosh LC IIe Option Card: prevent crash. (#93)

View File

@ -2542,7 +2542,7 @@ loop: lda selected_icon_list,x
sta selected_vol_icon_list,y sta selected_vol_icon_list,y
iny iny
: inx : inx
cpx selected_icon_list cpx selected_icon_count
bne loop bne loop
sty selected_vol_icon_count sty selected_vol_icon_count