using existing stack function to copy address. Fixes warning on PIC compile.

This commit is contained in:
skarg
2012-10-04 03:06:49 +00:00
parent e6b70dd866
commit 4664326d8c
+1 -1
View File
@@ -132,7 +132,7 @@ int iam_unicast_encode_pdu(
int pdu_len = 0;
BACNET_ADDRESS my_address;
/* The destination will be the same as the src, so copy it over. */
memcpy(dest, src, sizeof(BACNET_ADDRESS));
bacnet_address_copy(dest, src);
/* dest->net = 0; - no, must direct back to src->net to meet BTL tests */
datalink_get_my_address(&my_address);