From 2f0034e0128bc8c634e533a53a5c6f3daf17bcba Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Thu, 22 Jun 2023 20:07:06 +0200 Subject: plugins: last.fm scrobbler: fix crashes on iPod/ARM Change-Id: Ife0f1be20c681c153163233569933348b06d5c32 --- apps/plugins/lastfm_scrobbler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/lastfm_scrobbler.c b/apps/plugins/lastfm_scrobbler.c index 1530ff7ae7..eb6b8f7abd 100644 --- a/apps/plugins/lastfm_scrobbler.c +++ b/apps/plugins/lastfm_scrobbler.c @@ -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) -- cgit v1.2.3