From 30846972f9d956b74ec1a3b6749798ab5191ce5a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Sep 2008 14:29:36 +0200 Subject: [PATCH] Applying Debians 04-unaligned-memory.dpatch from Khalid Aziz to fix dosfsck unaligned memory accesses: * Fix unaligned memory accesses which cause warnings to appear everytime the elilo bootloader script runs. This has led a number of users to believe their install has failed (Closes: #258839). Signed-off-by: Daniel Baumann --- dosfsck/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosfsck/boot.c b/dosfsck/boot.c index 011e629..ae1a98f 100644 --- a/dosfsck/boot.c +++ b/dosfsck/boot.c @@ -41,7 +41,7 @@ static struct { ({ \ unsigned short __v; \ memcpy( &__v, &f, sizeof(__v) ); \ - CF_LE_W( *(unsigned short *)&f ); \ + CF_LE_W( *(unsigned short *)&__v ); \ }) #else #define GET_UNALIGNED_W(f) CF_LE_W( *(unsigned short *)&f )