forked from len0rd/rockbox
plugins: last.fm scrobbler: fix crashes on iPod/ARM
Change-Id: Ife0f1be20c681c153163233569933348b06d5c32
This commit is contained in:
parent
939bd9c2c3
commit
2f0034e012
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ int scrobbler_init_cache(void)
|
|||
static inline size_t cache_get_entry_size(int str_len)
|
||||
{
|
||||
/* entry_sz consists of the cache entry + str_len + \0NULL terminator */
|
||||
return str_len + 1 + sizeof(struct cache_entry);
|
||||
return ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), 0x4);
|
||||
}
|
||||
|
||||
static inline const char* str_chk_valid(const char *s, const char *alt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue