diff options
author | Jeroen Roovers <jer@gentoo.org> | 2016-08-08 15:09:23 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2016-08-08 15:10:01 +0200 |
commit | 3dadd237dced7b2750ddcebf7921a1011170e5f0 (patch) | |
tree | 36660152e9b542d8afab0f7b3539a07dd439d8bd /net-libs/libnet/files/libnet-1.2-sizeof.patch | |
parent | dev-go/ed25519: Fix version number. (diff) | |
download | gentoo-3dadd237dced7b2750ddcebf7921a1011170e5f0.tar.gz gentoo-3dadd237dced7b2750ddcebf7921a1011170e5f0.tar.bz2 gentoo-3dadd237dced7b2750ddcebf7921a1011170e5f0.zip |
net-libs/libnet: Fix building against sys-libs/musl by Petr Vaněk (bug #590738).
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-libs/libnet/files/libnet-1.2-sizeof.patch')
-rw-r--r-- | net-libs/libnet/files/libnet-1.2-sizeof.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-libs/libnet/files/libnet-1.2-sizeof.patch b/net-libs/libnet/files/libnet-1.2-sizeof.patch new file mode 100644 index 000000000000..e06dbb5bd704 --- /dev/null +++ b/net-libs/libnet/files/libnet-1.2-sizeof.patch @@ -0,0 +1,11 @@ +--- a/sample/sebek.c ++++ b/sample/sebek.c +@@ -167,7 +167,7 @@ + + if (payload_flag) + { +- memset(cmd, 0, sizeof(cmd)); ++ memset(cmd, 0, sizeof(*cmd)); + memcpy(cmd, payload, (payload_s < 12 ? payload_s : 12)); + length = payload_s; + } |