X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=49319e2a81a7fbd4e8cc6cce5e131b931de8f1b6;hb=607d8eadccfd62c1fa84a36bd1440bd48b4e55ca;hp=84a58c465a2b1da1f9a5aabfe11646db6aa0998a;hpb=3604f5c7d9c671dd8a59c8adab14c8f4edd9503e;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index 84a58c4..49319e2 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -93,6 +93,7 @@ #include #include #include +#include #include "pppd.h" #include "magic.h" @@ -293,8 +294,8 @@ main(int argc, char *argv[]) struct protent *protp; char numbuf[16]; - strlcpy(path_ipup, _PATH_IPUP, sizeof(path_ipup)); - strlcpy(path_ipdown, _PATH_IPDOWN, sizeof(path_ipdown)); + strlcpy(path_ipup, _PATH_IPUP, MAXPATHLEN); + strlcpy(path_ipdown, _PATH_IPDOWN, MAXPATHLEN); #ifdef PPP_WITH_IPV6CP strlcpy(path_ipv6up, _PATH_IPV6UP, MAXPATHLEN);