This code was supposed to write two sectors but instead it wrote the same
sector twice.
Thanks to Grant A Shurtz for reporting this bug.
them, though, in case we have more files to append. */
memset (buffer, 0, BLOCK_SECTOR_SIZE);
block_write (dst, sector, buffer);
them, though, in case we have more files to append. */
memset (buffer, 0, BLOCK_SECTOR_SIZE);
block_write (dst, sector, buffer);
- block_write (dst, sector, buffer + 1);
+ block_write (dst, sector + 1, buffer);
/* Finish up. */
file_close (src);
/* Finish up. */
file_close (src);