[systemd-commits] src/libsystemd-rtnl

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Mon Dec 16 21:45:53 PST 2013


 src/libsystemd-rtnl/rtnl-message.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b9eaf3d1ebc839dc30dbbee9ce080855b3f002c0
Author: Marc-Antoine Perennou <Marc-Antoine at Perennou.com>
Date:   Tue Dec 17 14:13:57 2013 +0900

    rtnl: fix for 32bits
    
    Commit 0a0dc69b655cfb10cab39133f5d521e7b35ce3d5 broke tests for 32 bits

diff --git a/src/libsystemd-rtnl/rtnl-message.c b/src/libsystemd-rtnl/rtnl-message.c
index 264cca0..c62eca9 100644
--- a/src/libsystemd-rtnl/rtnl-message.c
+++ b/src/libsystemd-rtnl/rtnl-message.c
@@ -601,7 +601,7 @@ int sd_rtnl_message_append_ether_addr(sd_rtnl_message *m, unsigned short type, c
                         return -ENOTSUP;
         }
 
-        r = add_rtattr(m, type, data, sizeof(data));
+        r = add_rtattr(m, type, data, ETH_ALEN);
         if (r < 0)
                 return r;
 



More information about the systemd-commits mailing list