zero the entire buffer

svn path=/trunk/; revision=17524
This commit is contained in:
Royce Mitchell III 2005-08-24 22:38:10 +00:00
parent a8e3f13a42
commit 5c7747b97c

View file

@ -35,7 +35,7 @@ int main (int argc, char ** argv)
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);