forked from pool/mtools
Petr Gajdos
d86a786614
* fixed formatting of fat_size_calculation.tex document * Make it clear that label is limited to 13 characters * Fixed typo in initialization of FAT32 info sector - remove invalid-memory.diff OBS-URL: https://build.opensuse.org/package/show/Base:System/mtools?expand=0&rev=21
14 lines
431 B
Diff
14 lines
431 B
Diff
Index: fat.c
|
|
===================================================================
|
|
--- fat.c.orig
|
|
+++ fat.c
|
|
@@ -722,7 +722,7 @@ static int old_fat_read(Fs_t *This, unio
|
|
if(check_media_type(This,boot, tot_sectors))
|
|
return -1;
|
|
|
|
- if(This->num_clus >= FAT12) {
|
|
+ if(This->num_clus >= FAT12 || config_fat_bits == 16) {
|
|
set_fat16(This);
|
|
/* third FAT byte must be 0xff */
|
|
if(!mtools_skip_check && readByte(This, 3) != 0xff)
|