]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Replace magic number with proper constant.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 18 Nov 2004 12:48:46 +0000 (12:48 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 18 Nov 2004 12:48:46 +0000 (12:48 +0000)
MERGED FROM HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@3042

coregrind/vg_errcontext.c

index 07d4c8f97508b2920c1be59403e937068e0d33df..582b243068b5b115ec0beff284f13cdf2eac4ef9 100644 (file)
@@ -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");