summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-07-27 10:49:43 +0000
committerDave Chapman <dave@dchapman.com>2008-07-27 10:49:43 +0000
commit0d2254f4789dae6b3ce81b4a8f8fd040366f6367 (patch)
tree457385bcdda5242308f352acf9a00884367ec29f /apps
parent1bb04334b12efee7df3cd1d9a6c06c4ebf065007 (diff)
downloadrockbox-0d2254f4789dae6b3ce81b4a8f8fd040366f6367.tar.gz
rockbox-0d2254f4789dae6b3ce81b4a8f8fd040366f6367.zip
SAP codec: Ensure the module_info struct is correctly aligned - seems to fix the data aborts being reported on ARM targets (closes FS#9216).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18126 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/metadata/asap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/metadata/asap.c b/apps/metadata/asap.c
index f8ff1175ce..1ab972181c 100644
--- a/apps/metadata/asap.c
+++ b/apps/metadata/asap.c
@@ -230,7 +230,7 @@ bool get_asap_metadata(int fd, struct mp3entry* id3)
230 230
231 int filelength = filesize(fd); 231 int filelength = filesize(fd);
232 struct module_info *info; 232 struct module_info *info;
233 info = (struct module_info *) buf; 233 info = (struct module_info *) (((intptr_t)buf + 3) & ~3); /* Align to 4 bytes */
234 234
235 if(parse_sap_header(fd,info,filelength) == false) 235 if(parse_sap_header(fd,info,filelength) == false)
236 { 236 {