X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipxcp.c;h=04605b123524498c3969fcb433e062caf4d33ec1;hb=2a7981f8ca0fc6660146885b75f7a663fe221119;hp=7b2343e155377120273793d3be2ce2cf28daff29;hpb=8d07ad78c8a32b9c89bfcea25d775e8440fd4172;p=ppp.git diff --git a/pppd/ipxcp.c b/pppd/ipxcp.c index 7b2343e..04605b1 100644 --- a/pppd/ipxcp.c +++ b/pppd/ipxcp.c @@ -62,7 +62,6 @@ #include "pathnames.h" #include "magic.h" -static const char rcsid[] = RCSID; /* global vars */ ipxcp_options ipxcp_wantoptions[NUM_PPP]; /* Options that we want to request */ @@ -1194,7 +1193,7 @@ ipxcp_reqci(f, inp, len, reject_if_disagree) case IPX_ROUTER_NAME: if (cilen >= CILEN_NAME) { int name_size = cilen - CILEN_NAME; - if (name_size > sizeof (ho->name)) + if (name_size >= sizeof (ho->name)) name_size = sizeof (ho->name) - 1; memset (ho->name, 0, sizeof (ho->name)); memcpy (ho->name, p, name_size);