diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-04-26 05:35:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-04-26 05:35:04 +0000 |
commit | 847846d8254e869e1829e2b1479ec0d08e3aa8ca (patch) | |
tree | 364adfda8665391664446fc4cbc551227e78c6b2 /epan/dissectors/packet-iax2.c | |
parent | f16cd039c979b410924e807fa06cc4f18c389bfa (diff) |
memmove() is needed only if the source and destination might overlap.
svn path=/trunk/; revision=21589
Diffstat (limited to 'epan/dissectors/packet-iax2.c')
-rw-r--r-- | epan/dissectors/packet-iax2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c index f3da747070..54ea2e165b 100644 --- a/epan/dissectors/packet-iax2.c +++ b/epan/dissectors/packet-iax2.c @@ -511,7 +511,7 @@ static guint iax_circuit_lookup(const address *address, new_key->addr.type = address->type; new_key->addr.len = MIN(address->len,MAX_ADDRESS); new_key->addr.data = new_key->address_data; - memmove(new_key->address_data,address->data,new_key->addr.len); + memcpy(new_key->address_data,address->data,new_key->addr.len); new_key->ptype = ptype; new_key->port = port; new_key->callno = callno; |