diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-10 16:49:28 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-10 16:49:28 +0000 |
commit | 23de77b72babc03ab1d8a3283ccfb8cf0c042a1c (patch) | |
tree | 1f0ae2716b62a7173c027a47e84c3a8efc499173 | |
parent | 4c8650efd878134a8937ff500730c1db723be99f (diff) | |
download | newlib-23de77b72babc03ab1d8a3283ccfb8cf0c042a1c.zip newlib-23de77b72babc03ab1d8a3283ccfb8cf0c042a1c.tar.gz newlib-23de77b72babc03ab1d8a3283ccfb8cf0c042a1c.tar.bz2 |
* fhandler_proc.cc (format_proc_cpuinfo): Avoid leading whitespace in model
name.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_proc.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d8f2000..a2a57cb 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-01-10 Christopher Faylor <cgf@timesys.com> + + * fhandler_proc.cc (format_proc_cpuinfo): Avoid leading whitespace in + model name. + 2006-01-09 Christopher Faylor <cgf@timesys.com> * spawn.cc (spawn_guts): Reorganize slightly so that 16 bit check is diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index 996444a..394f42e 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -793,7 +793,7 @@ format_proc_cpuinfo (char *destbuf, size_t maxsize) type_str, family, model, - szBuffer, + szBuffer + strspn (szBuffer, " "), stepping, brand_id, cpu_count, |