zero the entire buffer
Modified: trunk/reactos/subsys/system/hostname/hostname.c
--- trunk/reactos/subsys/system/hostname/hostname.c 2005-08-24 21:54:13 UTC (rev 17523) +++ trunk/reactos/subsys/system/hostname/hostname.c 2005-08-24 22:38:10 UTC (rev 17524) @@ -35,7 +35,7 @@
TCHAR ComputerName [MAX_COMPUTERNAME_LENGTH + 1]; DWORD ComputerNameSize = sizeof ComputerName / sizeof ComputerName[0];
- ZeroMemory (ComputerName, ComputerNameSize);
+ ZeroMemory (ComputerName, sizeof ComputerName );
if (GetComputerName(ComputerName, & ComputerNameSize)) { printf ("%s\n", ComputerName);