From 207a7fe448fccaead498f65ff77ec6af3c20dd02 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 23 Jun 2023 16:09:37 +0200 Subject: [PATCH] last.fm scrobbler: Use portable alignment Change-Id: I44cd89f4a4dca1ab9c6134b6a1bf16328d233c0e --- 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 eb6b8f7abd..fa3ab08fe0 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 ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), 0x4); + return ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), alignof(struct cache_entry)); } static inline const char* str_chk_valid(const char *s, const char *alt)