From 73b4c402056e0cdee47589d60b4191b15bbcf570 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 24 Jan 2015 19:56:42 +0000 Subject: [PATCH] * uname.cc (uname): Shorten "WOW64" to "WOW" to account for the new Windows 10 OS version "10.0" starting with preview build 9926. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/uname.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ef1b2f1fb..bb269e52e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2015-01-24 Pierre A. Humblet + + * uname.cc (uname): Shorten "WOW64" to "WOW" to account for the new + Windows 10 OS version "10.0" starting with preview build 9926. + 2015-01-23 Pierre A. Humblet * net.cc (cygwin_inet_pton): Declare. diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc index b586e6374..1aa7f7371 100644 --- a/winsup/cygwin/uname.cc +++ b/winsup/cygwin/uname.cc @@ -1,7 +1,7 @@ /* uname.cc Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2013, 2014 Red Hat, Inc. + 2006, 2007, 2008, 2013, 2014, 2015 Red Hat, Inc. Written by Steve Chamberlain of Cygnus Support, sac@cygnus.com Rewritten by Geoffrey Noer of Cygnus Solutions, noer@cygnus.com @@ -32,7 +32,7 @@ uname (struct utsname *name) /* Add a hint to the sysname, that we're running under WOW64. This might give an early clue if somebody encounters problems. */ if (wincap.is_wow64 ()) - strncat (name->sysname, "-WOW64", + strncat (name->sysname, "-WOW", sizeof name->sysname - strlen (name->sysname) - 1); GetSystemInfo (&sysinfo); -- 2.43.5