From: Eivind Næss Date: Thu, 23 Sep 2021 21:52:47 +0000 (-0700) Subject: Fix for CLang -Wformat-overflow warning, expand the destination array to fit a number. X-Git-Tag: ppp-2.5.0~56^2 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=d625b437597fc8c3f86b93ceca4fbb9224a6313b;hp=410fcb63fecc76af3818d5fba8fc155a3949c1f1;p=ppp.git Fix for CLang -Wformat-overflow warning, expand the destination array to fit a number. Signed-off-by: Eivind Næss --- 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;