From ff5ef2582300c2d982820ffeaede2ea08aaba3d8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Oct 2021 10:24:40 -0700 Subject: [PATCH] sigsegv: fix quoting problem Problem reported for FreeBSD ports by Alexey Dokuchaev in: https://bugs.gnu.org/51144 * m4/stack-direction.m4 (SV_STACK_DIRECTION): Quote brackets. --- ChangeLog | 7 +++++++ m4/stack-direction.m4 | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index da5b570ee..ea71de0b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-10-13 Paul Eggert + + sigsegv: fix quoting problem + Problem reported for FreeBSD ports by Alexey Dokuchaev in: + https://bugs.gnu.org/51144 + * m4/stack-direction.m4 (SV_STACK_DIRECTION): Quote brackets. + 2021-10-10 Paul Eggert nproc: port better to OpenBSD diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4 index e682be97d..c90d69733 100644 --- a/m4/stack-direction.m4 +++ b/m4/stack-direction.m4 @@ -1,4 +1,4 @@ -# stack-direction.m4 serial 8 +# stack-direction.m4 serial 9 dnl Copyright (C) 2002-2021 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -79,7 +79,7 @@ find_stack_direction (int *addr, int depth) return dir + dummy; } int -main (int argc, char *argv[]) +main (int argc, char *argv[[]]) { printf ("%d\n", find_stack_direction (NULL, argc + 20)); return 0; -- 2.30.2