correct buffer size setting -> rewind file at beginning of second level

This commit is contained in:
Laurent Vivier 2004-12-25 00:49:39 +00:00
parent 63a8d52768
commit 13bfc6ee2a

View File

@ -187,6 +187,7 @@ int emile_floppy_create_image(char* first_level, char* second_level,
FIRST_LEVEL_SIZE +
emile_file_get_size(second_level),
ramdisk);
lseek(fd, FIRST_LEVEL_SIZE, SEEK_SET);
ret = emile_second_set_buffer_size(fd, buffer_size);
close(fd);