hyperv/kvp: Use proper size macro for adapter id.

Submitted by:	Christopher Ertl <Christopher.Ertl microsoft com>
MFC after:	3 days
Sponsored by:	Microsoft
This commit is contained in:
sephe 2017-08-03 01:44:40 +00:00
parent 09b1c6f030
commit 5863c3132c

View File

@ -253,7 +253,7 @@ hv_kvp_convert_utf8_ipinfo_to_utf16(struct hv_kvp_msg *umsg,
UNUSED_FLAG, UNUSED_FLAG,
&err_dns); &err_dns);
utf8_to_utf16((uint16_t *)host_ip_msg->kvp_ip_val.adapter_id, utf8_to_utf16((uint16_t *)host_ip_msg->kvp_ip_val.adapter_id,
MAX_IP_ADDR_SIZE, MAX_ADAPTER_ID_SIZE,
(char *)umsg->body.kvp_ip_val.adapter_id, (char *)umsg->body.kvp_ip_val.adapter_id,
strlen((char *)umsg->body.kvp_ip_val.adapter_id), strlen((char *)umsg->body.kvp_ip_val.adapter_id),
UNUSED_FLAG, UNUSED_FLAG,