summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 064f7f9fd..7efbc1f9c 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -461,8 +461,8 @@ format_process_ctty (void *data, char *&destbuf)
}
device d;
d.parse (p->ctty);
- destbuf = (char *) crealloc_abort (destbuf, strlen (d.name) + 2);
- return __small_sprintf (destbuf, "%s\n", d.name);
+ destbuf = (char *) crealloc_abort (destbuf, strlen (d.name ()) + 2);
+ return __small_sprintf (destbuf, "%s\n", d.name ());
}
static off_t