* shared.cc (user_shared_initialize): Revert length attribute for name

variable to be just UNLEN + 1.
This commit is contained in:
Corinna Vinschen
2003-09-11 07:57:39 +00:00
parent a5ba4027f4
commit d99e72dc52
2 changed files with 6 additions and 1 deletions

View File

@@ -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 ())
{