summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/dircache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index b6f3f8040c..27784ae369 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -851,7 +851,7 @@ int dircache_build(int last_size)
851 * and their corresponding d_name from the end 851 * and their corresponding d_name from the end
852 * after generation the buffer will be compacted with DIRCACHE_RESERVE 852 * after generation the buffer will be compacted with DIRCACHE_RESERVE
853 * free bytes inbetween */ 853 * free bytes inbetween */
854 audiobuf = (char*)(((intptr_t)audiobuf & ~0x03) + 0x04); 854 audiobuf = ALIGN_UP(audiobuf, sizeof(struct dircache_entry*));
855 dircache_root = (struct dircache_entry*)audiobuf; 855 dircache_root = (struct dircache_entry*)audiobuf;
856 d_names_start = d_names_end = audiobufend - 1; 856 d_names_start = d_names_end = audiobufend - 1;
857 dircache_size = 0; 857 dircache_size = 0;