diff --git a/settings.c b/settings.c --- a/settings.c +++ b/settings.c @@ -50,7 +50,7 @@ static void *pool_alloc(SettingsMemoryPo uint pos; SettingsMemoryPool *p = *pool; - size = ALIGN(size, 4); // align everything to a 32 bit boundary + size = ALIGN(size, sizeof(void*)); // first check if there's memory in the next pool if (p->next && p->next->pos + size <= p->next->size) {