From d625b437597fc8c3f86b93ceca4fbb9224a6313b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eivind=20N=C3=A6ss?= Date: Thu, 23 Sep 2021 14:52:47 -0700 Subject: [PATCH] Fix for CLang -Wformat-overflow warning, expand the destination array to fit a number. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eivind Næss --- pppd/plugins/pppol2tp/pppol2tp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pppd/plugins/pppol2tp/pppol2tp.c b/pppd/plugins/pppol2tp/pppol2tp.c index f22568d..ed2d7c7 100644 --- a/pppd/plugins/pppol2tp/pppol2tp.c +++ b/pppd/plugins/pppol2tp/pppol2tp.c @@ -207,8 +207,8 @@ static void send_config_pppol2tp(int mtu, int on = 1; int fd; char reorderto[16]; - char tid[8]; - char sid[8]; + char tid[12]; + char sid[12]; if (pppol2tp_ifname[0]) { struct ifreq ifr; -- 2.39.2