]> git.ozlabs.org Git - ppp.git/commitdiff
Fix for CLang -Wformat-overflow warning, expand the destination array to fit a number.
authorEivind Næss <eivnaes@yahoo.com>
Thu, 23 Sep 2021 21:52:47 +0000 (14:52 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Thu, 23 Sep 2021 21:53:40 +0000 (14:53 -0700)
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
pppd/plugins/pppol2tp/pppol2tp.c

index f22568df5a0eea48ed64ef1e9bb75e38d21dcca5..ed2d7c7942a11db2ac6eb8152d0ad87507bf2886 100644 (file)
@@ -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;