From 4fc2090bb2ce90b1c9e2deee78c7e0659adabc21 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 18 Nov 2004 12:48:46 +0000 Subject: [PATCH] Replace magic number with proper constant. MERGED FROM HEAD git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@3042 --- coregrind/vg_errcontext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coregrind/vg_errcontext.c b/coregrind/vg_errcontext.c index 07d4c8f975..582b243068 100644 --- a/coregrind/vg_errcontext.c +++ b/coregrind/vg_errcontext.c @@ -337,7 +337,8 @@ static void gen_suppression(Error* err) ExeContext* ec = VG_(get_error_where)(err); Int stop_at = VG_(clo_backtrace_size); - if (stop_at > 4) stop_at = 4; /* At most four names */ + /* At most VG_N_SUPP_CALLERS names */ + if (stop_at > VG_N_SUPP_CALLERS) stop_at = VG_N_SUPP_CALLERS; vg_assert(stop_at > 0); VG_(printf)("{\n"); -- 2.47.2