Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r--winsup/cygwin/external.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index cc080d2d2..111bd31c5 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -42,6 +42,7 @@ fillout_pinfo (pid_t pid, int winpid)
{
BOOL nextpid;
static external_pinfo ep;
+ static char ep_progname_long_buf[NT_MAX_PATH];
if ((nextpid = !!(pid & CW_NEXTPID)))
pid ^= CW_NEXTPID;
@@ -98,6 +99,7 @@ fillout_pinfo (pid_t pid, int winpid)
ep.uid32 = p->uid;
ep.gid32 = p->gid;
+ ep.progname_long = ep_progname_long_buf;
strcpy (ep.progname_long, p->progname);
break;
}