Avoid unaligned access
authorWouter Verhelst <w@uter.be>
Fri, 5 Jun 2009 19:43:54 +0000 (21:43 +0200)
committerWouter Verhelst <w@uter.be>
Fri, 5 Jun 2009 19:43:54 +0000 (21:43 +0200)
commit0a4264bb205a6d77f04d9861269ed26b11df1633
treed97af92be8a292a0d97805670956e2a86c0f5e9e
parent1197bbe493cce7ea48139db8e4568c87576b4eaf
Avoid unaligned access

nbd-tester-client tried to write to a char array in a packed struct by
casting it to an u64 pointer and dereferencing it. That causes unaligned
access and, hence, a SIGBUS on SPARC.

Fix by using memcpy instead.
nbd-tester-client.c