diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-06-06 15:47:29 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-06-06 15:47:29 +0400 |
commit | 1d95e198c12ef65b5157da462c9d77908f48597f (patch) | |
tree | 602810eec402d63734db2b43b84249dddca805d5 /winsup/cygwin/dll_init.h | |
parent | 611fe46079da132279a9a94af2f3e79b94038d27 (diff) |
* dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.
* dll_init.cc: Fix formatting.
(dll_list::alloc): Only allocate as much memory for struct dll as
necessary for given DLL name.
(dll_list::load_after_fork): Only read a single page of parent memory.
Only read more if namelen indicates that it's necessary.
Diffstat (limited to 'winsup/cygwin/dll_init.h')
-rw-r--r-- | winsup/cygwin/dll_init.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/dll_init.h b/winsup/cygwin/dll_init.h index dd7dfb3d7..b6c24b2fb 100644 --- a/winsup/cygwin/dll_init.h +++ b/winsup/cygwin/dll_init.h @@ -1,6 +1,7 @@ /* dll_init.h - Copyright 1998, 1999, 2000, 2001 Red Hat, Inc. + Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2008, + 2009 Red Hat, Inc. This file is part of Cygwin. @@ -51,7 +52,7 @@ struct dll int count; dll_type type; int namelen; - WCHAR name[NT_MAX_PATH]; + WCHAR name[ANYSIZE_ARRAY]; void detach (); int init (); }; |