--- src/usr.sbin/ppp/tty.c 2003/08/08 04:18:47 1.3 +++ src/usr.sbin/ppp/tty.c 2007/06/04 00:40:32 1.4 @@ -228,7 +228,7 @@ static void tty_SetAsyncParams(struct physical *p, u_int32_t mymap, u_int32_t hismap) { struct ttydevice *dev = device2tty(p->handler); - char asyncpath[NG_PATHLEN + 1]; + char asyncpath[NG_PATHSIZ]; struct ng_async_cfg cfg; if (isngtty(dev)) { @@ -257,7 +257,7 @@ LoadLineDiscipline(struct physical *p) u_char rbuf[sizeof(struct ng_mesg) + sizeof(struct nodeinfo)]; struct ng_mesg *reply; struct nodeinfo *info; - char ttypath[NG_NODELEN + 1]; + char ttypath[NG_NODESIZ]; struct ngm_mkpeer ngm; struct ngm_connect ngc; int ldisc, cs, ds, hot, speed;