summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-03-26 15:27:44 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-03-26 15:27:44 +0000
commitd1f9495c832b9c1121baccd7d5a3ccdcdfe2b96c (patch)
tree025e3fa5ca088afca05839101ea457add539478d /apps/tagcache.c
parent358055ece940e39e98e9da526e509ac1ac37e3dd (diff)
Fixed possible data alignment problem while committing the tagcache.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9259 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index db70cd5b34..f6a42d0088 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -751,7 +751,7 @@ static bool tempbuf_insert(char *str, int id)
/* Make sure the entry is long aligned. */
if ((long)index[tempbufidx].id & 0x03)
{
- int fix = 4 - ((long)id & 0x03);
+ int fix = 4 - ((long)index[tempbufidx].id & 0x03);
tempbuf_left -= fix;
tempbuf_pos += fix;
index[tempbufidx].id = (struct tempbuf_id *)((