diff options
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 5a046f956..1162e7b1b 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -398,7 +398,7 @@ extern char **__argv; void _pinfo::commune_recv () { - char path[CYG_MAX_PATH + 1]; + char path[CYG_MAX_PATH]; DWORD nr; DWORD code; HANDLE hp; @@ -833,7 +833,7 @@ _pinfo::fd (int fd, size_t &n) if (cfd < 0) s = strdup (""); else - s = cfd->get_proc_fd_name ((char *) malloc (CYG_MAX_PATH + 1)); + s = cfd->get_proc_fd_name ((char *) malloc (CYG_MAX_PATH)); n = strlen (s) + 1; } return s; |