From: Nicholas Nethercote Date: Thu, 18 Nov 2004 12:45:40 +0000 (+0000) Subject: Replace magic number with proper constant. X-Git-Tag: svn/VALGRIND_3_0_0~1276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71cc7cf0675b05c057c2be1ae7687f9d9a08ec4c;p=thirdparty%2Fvalgrind.git Replace magic number with proper constant. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3040 --- diff --git a/coregrind/vg_errcontext.c b/coregrind/vg_errcontext.c index f69cc4b4e9..45a5c2cc6c 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");