From 824d851859450e8c3943d0439fc57a3520081eb4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 4 Aug 2009 04:20:36 +0000 Subject: * fhandler.h (fhandler_cygdrive:DRVSZ): New enum. (pdrive_buf): New place to hold information about cygdrive. * fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Store drive info in pdrive_buf since get_win32_name() could now be too small to hold everything. (fhandler_cygdrive::rewinddir): Reset pdrive to pdrive_buf. (fhandler_cygdrive::closedir): Ditto. * pipe.cc (fhandler_pipe::init): Be more defensive when referencing get_win32_name(). Rework logic which made a copy of the POSIX path and then never used it. --- winsup/cygwin/cxx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/cxx.cc') diff --git a/winsup/cygwin/cxx.cc b/winsup/cygwin/cxx.cc index 63262f59e..523fb4268 100644 --- a/winsup/cygwin/cxx.cc +++ b/winsup/cygwin/cxx.cc @@ -89,7 +89,7 @@ __cxa_guard_release () /* These routines are made available as last-resort fallbacks for the application. Should not be used in practice. */ -struct per_process_cxx_malloc default_cygwin_cxx_malloc = +struct per_process_cxx_malloc default_cygwin_cxx_malloc = { &(operator new), &(operator new[]), -- cgit v1.2.3