]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
Fixed an invalid write in disk.cpp:tobin
authorFrode Solheim <frode@fs-uae.net>
Wed, 29 Jan 2014 23:59:04 +0000 (00:59 +0100)
committerFrode Solheim <frode@fs-uae.net>
Wed, 29 Jan 2014 23:59:04 +0000 (00:59 +0100)
commit89792147b0a1d1e9e8048d2d7aa1605b5ba8028f
treecb49bd57e5ca80b76210bb11c5b63d59e092a1a1
parent9c3ccf8ff9af53bf0df5e49e3ee90d2a53064ae8
Fixed an invalid write in disk.cpp:tobin

When the loop is done, i == -1 and so buf[-1] is set 0 (I guess the loop
at one point counted upwards instead). Static memory is initialized
to zero anyway so left out buf[8] = 0;.
disk.cpp