From f61425ac330041704dcfbe454201514f36a60870 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 28 Feb 2000 06:21:07 +0000 Subject: [PATCH] Fix sysname. --- winsup/cygwin/uname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc index d15214613..330115df0 100644 --- a/winsup/cygwin/uname.cc +++ b/winsup/cygwin/uname.cc @@ -22,12 +22,12 @@ uname (struct utsname *name) SYSTEM_INFO sysinfo; extern char osname[]; + memset (name, 0, sizeof (*name)); __small_sprintf (name->sysname, "CYGWIN_%s", osname); GetSystemInfo (&sysinfo); /* Computer name */ - memset (name, 0, sizeof (*name)); len = sizeof (name->nodename) - 1; GetComputerNameA (name->nodename, &len);