alpha: fix -yy decoding

* socketutils.c (receive_responses): Align buffer on a sizeof(long) boundary.

Reported-and-tested-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Дмитрий Левин 2015-03-02 23:39:41 +00:00
parent d50949d21c
commit 301c65cbf0

View File

@ -114,7 +114,7 @@ receive_responses(const int fd, const unsigned long inode,
const char *proto_name,
bool (* parser) (const char *, const void *, int, const unsigned long))
{
static char buf[8192];
static long buf[8192 / sizeof(long)];
struct sockaddr_nl nladdr = {
.nl_family = AF_NETLINK
};