ipconfig: Fixed buffer size to MultiByteToWideChar.
This commit is contained in:
parent
f5518eb3d8
commit
243d458909
|
@ -289,7 +289,7 @@ static void print_full_information(void)
|
|||
{
|
||||
WCHAR hostnameW[MAX_HOSTNAME_LEN + 4];
|
||||
|
||||
MultiByteToWideChar(CP_ACP, 0, info->HostName, -1, hostnameW, sizeof(hostnameW));
|
||||
MultiByteToWideChar(CP_ACP, 0, info->HostName, -1, hostnameW, sizeof(hostnameW)/sizeof(hostnameW[0]));
|
||||
print_field(STRING_HOSTNAME, hostnameW);
|
||||
|
||||
/* FIXME: Output primary DNS suffix. */
|
||||
|
|
Loading…
Reference in New Issue