1
0
Fork 0
forked from len0rd/rockbox

plugins: last.fm scrobbler: fix crashes on iPod/ARM

Change-Id: Ife0f1be20c681c153163233569933348b06d5c32
This commit is contained in:
Christian Soffke 2023-06-22 20:07:06 +02:00
parent 939bd9c2c3
commit 2f0034e012

View file

@ -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)