X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=49319e2a81a7fbd4e8cc6cce5e131b931de8f1b6;hb=509f04959ad891d7f981f035ed461d51bd1f74b0;hp=dbf22ece7f699ce3953a757ded2e1c3eba31fc4b;hpb=02e3fbaedc1c7ab8bcf5a6599dbf4db3998b9371;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index dbf22ec..49319e2 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -93,6 +93,7 @@ #include #include #include +#include #include "pppd.h" #include "magic.h" @@ -113,7 +114,7 @@ #include "tdb.h" #endif -#ifdef CBCP_SUPPORT +#ifdef PPP_WITH_CBCP #include "cbcp.h" #endif @@ -268,7 +269,7 @@ struct protent *protocols[] = { &lcp_protent, &pap_protent, &chap_protent, -#ifdef CBCP_SUPPORT +#ifdef PPP_WITH_CBCP &cbcp_protent, #endif &ipcp_protent, @@ -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);