proposal-substructure: Avoid unaligned memory access when reading SPI

This commit is contained in:
Tobias Brunner committed 2026-07-24 08:47:35 +02:00
1 parent d13b384536
commit 8c696dc90a
1 file changed
+2 -2
@@ -993,10 +993,10 @@ METHOD(proposal_substructure_t, get_proposals, void,
switch (this->spi.len)
{
case 4:
spi = *((uint32_t*)this->spi.ptr);
spi = uread32(this->spi.ptr);
break;
case 8:
spi = *((uint64_t*)this->spi.ptr);
spi = uread64(this->spi.ptr);
break;
default:
break;