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:
authorCorinna Vinschen <corinna@vinschen.de>2005-04-03 12:45:21 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-04-03 12:45:21 +0400
commitfe3e3336611e938e9d97be5cbce677d0be5a6fc9 (patch)
tree4b4530f513144d034e790832a62a93004d82f6a1 /winsup/cygwin/fhandler_process.cc
parent5e679b1981e6afe2c1448bf4f6815dae3f06355b (diff)
Unify usage of CYG_MAX_PATH throughout. Change buffers from
size CYG_MAX_PATH + 1 to CYG_MAX_PATH. Change length tests accordingly.
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 7fd71102f..0454e64b0 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -520,8 +520,8 @@ format_process_maps (_pinfo *p, char *&destbuf, size_t maxsize)
DWORD_PTR wset_size;
DWORD_PTR *workingset = NULL;
MODULEINFO info;
- char modname[CYG_MAX_PATH + 1];
- char posix_modname[CYG_MAX_PATH + 1];
+ char modname[CYG_MAX_PATH];
+ char posix_modname[CYG_MAX_PATH];
if (!EnumProcessModules (proc, NULL, 0, &needed))
{