altos: Make sure FAT cluster allocation works for size zero files
authorKeith Packard <keithp@keithp.com>
Mon, 1 Apr 2013 09:02:14 +0000 (02:02 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 1 Apr 2013 09:02:14 +0000 (02:02 -0700)
commit0838b6c8797b84cf8df8f92ee20fb6ae79e434d7
tree57fb6e400aa014a3b43bd6c5cf3905bc8b01b90d
parent76bd204de744c34e5cbf6efa93adb89bc2cb08b3
altos: Make sure FAT cluster allocation works for size zero files

There were some rounding errors mis-computing the number of clusters
needed, and the logic to figure out how to re-connect a chain was broken.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_fat.c