summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-06-22 20:07:06 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-06-22 20:27:36 +0200
commit2f0034e0128bc8c634e533a53a5c6f3daf17bcba (patch)
treed81a3a56f4456f945eb63e0a6b62c2c5e2bd5ab6 /apps
parent939bd9c2c3186ab4adca2efe85325314f04e53f7 (diff)
downloadrockbox-2f0034e0128bc8c634e533a53a5c6f3daf17bcba.tar.gz
rockbox-2f0034e0128bc8c634e533a53a5c6f3daf17bcba.zip
plugins: last.fm scrobbler: fix crashes on iPod/ARM
Change-Id: Ife0f1be20c681c153163233569933348b06d5c32
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/lastfm_scrobbler.c2
1 files changed, 1 insertions, 1 deletions
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)
343static inline size_t cache_get_entry_size(int str_len) 343static inline size_t cache_get_entry_size(int str_len)
344{ 344{
345 /* entry_sz consists of the cache entry + str_len + \0NULL terminator */ 345 /* entry_sz consists of the cache entry + str_len + \0NULL terminator */
346 return str_len + 1 + sizeof(struct cache_entry); 346 return ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), 0x4);
347} 347}
348 348
349static inline const char* str_chk_valid(const char *s, const char *alt) 349static inline const char* str_chk_valid(const char *s, const char *alt)