summaryrefslogtreecommitdiff
path: root/massif
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-06-21 23:44:58 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-06-21 23:44:58 +0000
commit57ca7abfcefb38c62a60fb41aa91227303dd2db6 (patch)
tree341bbe18213c5a6ba383b5874fcf1429c268e2b4 /massif
parent1727cc89685830bcd9cf25469d5d124fc161985c (diff)
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
Diffstat (limited to 'massif')
-rw-r--r--massif/ms_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/massif/ms_main.c b/massif/ms_main.c
index 48090be8..2877d14b 100644
--- a/massif/ms_main.c
+++ b/massif/ms_main.c
@@ -265,7 +265,7 @@ static VgHashTable malloc_list = NULL; // HP_Chunks
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 @@ static void ms_pre_clo_init()
// 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)