ipconfig: Fixed buffer size to MultiByteToWideChar.

This commit is contained in:
Marcus Meissner 2010-10-24 12:26:47 +02:00 committed by Alexandre Julliard
parent f5518eb3d8
commit 243d458909
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ static void print_full_information(void)
{ {
WCHAR hostnameW[MAX_HOSTNAME_LEN + 4]; 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); print_field(STRING_HOSTNAME, hostnameW);
/* FIXME: Output primary DNS suffix. */ /* FIXME: Output primary DNS suffix. */