From 5c7747b97ce423aa11c1cbc219ccf71829f047f6 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Wed, 24 Aug 2005 22:38:10 +0000 Subject: [PATCH 1/1] zero the entire buffer svn path=/trunk/; revision=17524 --- reactos/subsys/system/hostname/hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsys/system/hostname/hostname.c b/reactos/subsys/system/hostname/hostname.c index 769039a835a..42f0c044404 100644 --- a/reactos/subsys/system/hostname/hostname.c +++ b/reactos/subsys/system/hostname/hostname.c @@ -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); -- 2.17.1