From 6d53ef6485123052140d37c03ab9f2ce0f176970 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 1 Mar 2021 09:50:40 +0000 Subject: [PATCH] allocate enough space in start_child() argv for all possible flags ok claudio@ --- usr.sbin/ldpd/ldpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ldpd/ldpd.c b/usr.sbin/ldpd/ldpd.c index e4ea5fd3f51..58f78264a52 100644 --- a/usr.sbin/ldpd/ldpd.c +++ b/usr.sbin/ldpd/ldpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldpd.c,v 1.66 2021/01/19 15:23:25 claudio Exp $ */ +/* $OpenBSD: ldpd.c,v 1.67 2021/03/01 09:50:40 jsg Exp $ */ /* * Copyright (c) 2013, 2016 Renato Westphal @@ -323,7 +323,7 @@ static pid_t start_child(enum ldpd_process p, char *argv0, int fd, int debug, int verbose, char *sockname) { - char *argv[5]; + char *argv[7]; int argc = 0; pid_t pid; -- 2.20.1