]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Add 3 byte reserved space to the afs info.
authorAndre Noll <maan@systemlinux.org>
Sun, 21 Oct 2007 12:40:27 +0000 (14:40 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 21 Oct 2007 12:40:27 +0000 (14:40 +0200)
aft.c

diff --git a/aft.c b/aft.c
index 3666a2eb90de28431dd25b5adbac41503bf80d92..d77d7eafac98ade6cd7ccadac571681e9afdfd11 100644 (file)
--- 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);
 }
 
 /**