diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-12 12:17:15 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-12 12:31:03 +0200 |
commit | 21adfd2ba4324bb8575b17ecd76c0f3b3988246e (patch) | |
tree | e5617e0c5324bca7c81cd029cd5e9dd7ac1949d4 | |
parent | a723f99244edfa7e9c9cfc61130570584128ccf4 (diff) |
flowtop: Use size of destination buffer in memcpy
The coverity scanner found the macro used as argument to sizeof
suspicious. Use sizeof the destination buffer instead.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | flowtop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -577,7 +577,7 @@ static void flow_entry_get_sain6_obj(struct flow_entry *n, sa->sin6_family = PF_INET6; memcpy(&sa->sin6_addr, SELFLD(dir, ip6_src_addr, ip6_dst_addr), - sizeof(SELFLD(dir, ip6_src_addr, ip6_dst_addr))); + sizeof(sa->sin6_addr)); } static void |