Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2017 01:44:41 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321965 - head/sys/dev/hyperv/utilities
Message-ID:  <201708030144.v731if3E051305@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Thu Aug  3 01:44:40 2017
New Revision: 321965
URL: https://svnweb.freebsd.org/changeset/base/321965

Log:
  hyperv/kvp: Use proper size macro for adapter id.
  
  Submitted by:	Christopher Ertl <Christopher.Ertl microsoft com>
  MFC after:	3 days
  Sponsored by:	Microsoft

Modified:
  head/sys/dev/hyperv/utilities/hv_kvp.c

Modified: head/sys/dev/hyperv/utilities/hv_kvp.c
==============================================================================
--- head/sys/dev/hyperv/utilities/hv_kvp.c	Thu Aug  3 01:40:05 2017	(r321964)
+++ head/sys/dev/hyperv/utilities/hv_kvp.c	Thu Aug  3 01:44:40 2017	(r321965)
@@ -253,7 +253,7 @@ hv_kvp_convert_utf8_ipinfo_to_utf16(struct hv_kvp_msg 
 	    UNUSED_FLAG,
 	    &err_dns);
 	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,
 	    strlen((char *)umsg->body.kvp_ip_val.adapter_id),
 	    UNUSED_FLAG,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708030144.v731if3E051305>