projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e3f13
)
zero the entire buffer
author
Royce Mitchell III
<royce3@ev1.net>
Wed, 24 Aug 2005 22:38:10 +0000
(22:38 +0000)
committer
Royce Mitchell III
<royce3@ev1.net>
Wed, 24 Aug 2005 22:38:10 +0000
(22:38 +0000)
svn path=/trunk/; revision=17524
reactos/subsys/system/hostname/hostname.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/hostname/hostname.c
b/reactos/subsys/system/hostname/hostname.c
index
769039a
..
42f0c04
100644
(file)
--- 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);