]> 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:45:40 +0000 (12:45 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 18 Nov 2004 12:45:40 +0000 (12:45 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3040

coregrind/vg_errcontext.c

index f69cc4b4e96634fec6541910850e3fefb59c98e1..45a5c2cc6c64321674b98b09267f6aa16526f19f 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");