diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/shared.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6522e51..df7d2b2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-09-11 Corinna Vinschen <corinna@vinschen.de> + + * shared.cc (user_shared_initialize): Revert length attribute for name + variable to be just UNLEN + 1. + 2003-09-10 Pierre Humblet <pierre.humblet@ieee.org> * shared_info.h (shared_info::initialize): Remove argument. diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 22f0449..f4eb7d9 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -148,7 +148,7 @@ open_shared (const char *name, int n, HANDLE &shared_h, DWORD size, void user_shared_initialize () { - char name[UNLEN > 127 ? UNLEN + 1 : 128] = ""; + char name[UNLEN + 1] = ""; if (wincap.has_security ()) { |