]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bug 142491: allow more --alloc-fn functions (128, up from 32).
authorNicholas Nethercote <njn@valgrind.org>
Mon, 26 Mar 2007 23:51:29 +0000 (23:51 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 26 Mar 2007 23:51:29 +0000 (23:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6671

massif/ms_main.c

index dda642f875200f2584010f08997d954c2c5ea73b..6c9ab8946abd3e65be729e24eff5288143c557ed 100644 (file)
@@ -250,10 +250,10 @@ static UInt n_heap_blocks = 0;
 // Current directory at startup.
 static Char base_dir[VKI_PATH_MAX];
 
-#define MAX_ALLOC_FNS      32      // includes the builtin ones
+#define MAX_ALLOC_FNS      128     // includes the builtin ones
 
 // First few filled in, rest should be zeroed.  Zero-terminated vector.
-static UInt  n_alloc_fns = 11;
+static UInt  n_alloc_fns = 10;
 static Char* alloc_fns[MAX_ALLOC_FNS] = { 
    "malloc",
    "operator new(unsigned)",