simfs: Fix the number of bytes copied
authorDenis Kenzior <denkenz@gmail.com>
Wed, 13 Oct 2010 07:38:11 +0000 (02:38 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 13 Oct 2010 10:04:47 +0000 (05:04 -0500)
commitbd8c7e92bbbcb467e410884e541e89c1638aa22e
tree93bf2f4e611aa84b45cb9607f69a1126213d47c9
parente755292874995282ffdbcfed600fb3aec1c09425
simfs: Fix the number of bytes copied

In block reading operations we read too much when the number of bytes to
read is smaller than the size of the file.
src/simfs.c