Fix sysname.

This commit is contained in:
Christopher Faylor 2000-02-28 06:21:07 +00:00
parent 4698cc8ec8
commit f61425ac33
1 changed files with 1 additions and 1 deletions

View File

@ -22,12 +22,12 @@ uname (struct utsname *name)
SYSTEM_INFO sysinfo; SYSTEM_INFO sysinfo;
extern char osname[]; extern char osname[];
memset (name, 0, sizeof (*name));
__small_sprintf (name->sysname, "CYGWIN_%s", osname); __small_sprintf (name->sysname, "CYGWIN_%s", osname);
GetSystemInfo (&sysinfo); GetSystemInfo (&sysinfo);
/* Computer name */ /* Computer name */
memset (name, 0, sizeof (*name));
len = sizeof (name->nodename) - 1; len = sizeof (name->nodename) - 1;
GetComputerNameA (name->nodename, &len); GetComputerNameA (name->nodename, &len);