diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-02 20:42:02 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-02 20:42:02 +0400 |
commit | 47413f8473f7def5e11fe2c4fc26aae76cf766b6 (patch) | |
tree | d2123759f0ea4da0e587e72f9c910710a639cd2a /winsup/cygwin/fhandler_proc.cc | |
parent | afc15fdf4919767b85776b06cd4c0a629098d690 (diff) |
* fhandler_process.cc (fhandler_process::open): Set fileid.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r-- | winsup/cygwin/fhandler_proc.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index 5d0a5a591..d9fe8a69f 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -317,13 +317,13 @@ fhandler_proc::fill_filebuf () { if (!filebuf) { - struct utsname uts_name; - uname (&uts_name); - bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) + - 1 + strlen (uts_name.version) + 2; - filebuf = (char *) cmalloc (HEAP_BUF, bufalloc); - filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname, - uts_name.release, uts_name.version); + struct utsname uts_name; + uname (&uts_name); + bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) + + 1 + strlen (uts_name.version) + 2; + filebuf = (char *) cmalloc (HEAP_BUF, bufalloc); + filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname, + uts_name.release, uts_name.version); } break; } |