freemyipod r656 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r655‎ | r656 | r657 >
Date:17:25, 24 March 2011
Author:theseven
Status:new
Tags:
Comment:
libmkfat32: Fix volume label generation
Modified paths:
  • /libs/mkfat32/main.c (modified) (history)

Diff [purge]

Index: libs/mkfat32/main.c
@@ -92,7 +92,7 @@
9393 }
9494 memset(buf, 0, secperclus * sectorsize);
9595 memcpy(buf, label, 11);
96 - ((uint8_t*)buf)[0xc] = 0x80;
 96+ ((uint8_t*)buf)[0xb] = 8;
9797 PASS_RC_FREE(storage_write_sectors_md(volume, startsector + database,
9898 secperclus, buf), 2, 3, buf);
9999 free(buf);