- Fix wrong size parameter in memset call OBS-URL: https://build.opensuse.org/request/show/98272 OBS-URL: https://build.opensuse.org/package/show/Base:System/acpid?expand=0&rev=41
14 lines
409 B
Diff
14 lines
409 B
Diff
Index: acpid-2.0.13/libnetlink.c
|
|
===================================================================
|
|
--- acpid-2.0.13.orig/libnetlink.c
|
|
+++ acpid-2.0.13/libnetlink.c
|
|
@@ -41,7 +41,7 @@ int rtnl_open_byproto(struct rtnl_handle
|
|
int sndbuf = 32768;
|
|
int rcvbuf = 32768;
|
|
|
|
- memset(rth, 0, sizeof(rth));
|
|
+ memset(rth, 0, sizeof(*rth));
|
|
|
|
rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol);
|
|
if (rth->fd < 0) {
|