Remove VG_(getcwd_alloc)(), which can be done otherwise pretty easily.
This halves m_libcfile's dependence on m_mallocfree.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3995 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/massif/ms_main.c b/massif/ms_main.c
index 48090be..2877d14 100644
--- a/massif/ms_main.c
+++ b/massif/ms_main.c
@@ -265,7 +265,7 @@
 static UInt n_heap_blocks = 0;
 
 // Current directory at startup.
-static Char* base_dir;
+static Char base_dir[VKI_PATH_MAX];
 
 #define MAX_ALLOC_FNS      32      // includes the builtin ones
 
@@ -1835,7 +1835,7 @@
    // Dummy node at top of the context structure.
    alloc_xpt = new_XPt(0, NULL, /*is_bottom*/False);
 
-   tl_assert( VG_(getcwd_alloc)(&base_dir) );
+   tl_assert( VG_(getcwd)(base_dir, VKI_PATH_MAX) );
 }
 
 VG_DETERMINE_INTERFACE_VERSION(ms_pre_clo_init, 0)