From: Andre Noll Date: Sun, 21 Oct 2007 12:40:27 +0000 (+0200) Subject: Add 3 byte reserved space to the afs info. X-Git-Tag: v0.3.0~275 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=4cb470633b0fbcd5e374008b1c001b1e9ca6cf8d;p=paraslash.git Add 3 byte reserved space to the afs info. --- diff --git a/aft.c b/aft.c index 3666a2eb..d77d7eaf 100644 --- a/aft.c +++ b/aft.c @@ -138,8 +138,10 @@ enum afsi_offsets { AFSI_LYRICS_ID_OFFSET = 24, /** Storage position of the .audio_format_id field. */ AFSI_AUDIO_FORMAT_ID_OFFSET = 28, + /** 3 bytes reserved space for future usage. */ + AFSI_AUDIO_FORMAT_UNUSED_OFFSET = 29, /** On-disk storage space needed. */ - AFSI_SIZE = 29 + AFSI_SIZE = 32 }; /** @@ -161,6 +163,7 @@ void save_afsi(struct afs_info *afsi, struct osl_object *obj) write_u32(buf + AFSI_LYRICS_ID_OFFSET, afsi->lyrics_id); write_u8(buf + AFSI_AUDIO_FORMAT_ID_OFFSET, afsi->audio_format_id); + memset(buf + AFSI_AUDIO_FORMAT_UNUSED_OFFSET, 0, 3); } /**