Module Name: src Committed By: riastradh Date: Mon Jul 25 11:02:41 UTC 2022
Modified Files: src/tests/lib/libexecinfo: t_sig_backtrace.c Log Message: execinfo: Fix mistake in previous: match `the_loop*' as prefix. Now that there are two functions we need to catch either one. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libexecinfo/t_sig_backtrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libexecinfo/t_sig_backtrace.c diff -u src/tests/lib/libexecinfo/t_sig_backtrace.c:1.3 src/tests/lib/libexecinfo/t_sig_backtrace.c:1.4 --- src/tests/lib/libexecinfo/t_sig_backtrace.c:1.3 Mon Jul 25 10:38:17 2022 +++ src/tests/lib/libexecinfo/t_sig_backtrace.c Mon Jul 25 11:02:41 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: t_sig_backtrace.c,v 1.3 2022/07/25 10:38:17 riastradh Exp $ */ +/* $NetBSD: t_sig_backtrace.c,v 1.4 2022/07/25 11:02:41 riastradh Exp $ */ /*- * Copyright (c) 2021 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_sig_backtrace.c,v 1.3 2022/07/25 10:38:17 riastradh Exp $"); +__RCSID("$NetBSD: t_sig_backtrace.c,v 1.4 2022/07/25 11:02:41 riastradh Exp $"); #include <sys/mman.h> #include <execinfo.h> @@ -155,7 +155,7 @@ handler(int s) continue; } if (found_sigtramp && !found_the_loop && - strcmp(strings[i], "the_loop") == 0) { + strncmp(strings[i], "the_loop", strlen("the_loop")) == 0) { found_the_loop = true; continue; }