fread_targphys(): Do not cut off the tail.
commit7d515c1d731827fc8e2eb5cbf0043ffb5071c8bb
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 9 Mar 2009 18:08:56 +0000 (9 18:08 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 9 Mar 2009 18:08:56 +0000 (9 18:08 +0000)
tree33c858b12384a82ab510b66591ea10ed336a481e
parente4f5100c33fdb6dcc3d3b5af52798ea79adc472d
fread_targphys(): Do not cut off the tail.

loader.c:fread_targphys() read file by 4096 byte chunks and store them to
memory. But did not store the last chunk if its size was not 4096.

Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6792 c046a42c-6fe2-441c-8c8c-71466251a162
loader.c