summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-12 12:17:15 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-12 12:31:03 +0200
commit21adfd2ba4324bb8575b17ecd76c0f3b3988246e (patch)
treee5617e0c5324bca7c81cd029cd5e9dd7ac1949d4
parenta723f99244edfa7e9c9cfc61130570584128ccf4 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flowtop.c b/flowtop.c
index e67859c..43d770e 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -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