acpid/acpid-wrong-memset.patch

12 lines
328 B
Diff

--- libnetlink.c.orig 2012-03-16 09:03:33.422941268 -0400
+++ libnetlink.c 2012-03-16 09:03:52.113707601 -0400
@@ -41,7 +41,7 @@
int sndbuf = 32768;
int rcvbuf = 32768;
- memset(rth, 0, sizeof(rth));
+ memset(rth, 0, sizeof(*rth));
rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol);
if (rth->fd < 0) {