From 1d95e198c12ef65b5157da462c9d77908f48597f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 6 Jun 2009 11:47:29 +0000 Subject: * 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. --- winsup/cygwin/dll_init.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/dll_init.h') 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 (); }; -- cgit v1.2.3