X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=7441219fa97e3be6e6193438ec36225ec98339bd;hb=f9573cffbde6dd807c7237c60a090b3195d6dbec;hp=8bb5caa512295b06c2b7b97684e791857fe7947a;hpb=7097785dc774ed0ff166a0434a90ffc342814ae9;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index 8bb5caa..7441219 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.47 1998/03/30 06:25:34 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.48 1998/04/28 23:37:30 paulus Exp $"; #endif #include @@ -1287,10 +1287,9 @@ pr_log __V((void *arg, char *fmt, ...)) fmt = va_arg(pvar, char *); #endif - vsprintf(buf, fmt, pvar); + n = vfmtmsg(buf, sizeof(buf), fmt, pvar); va_end(pvar); - n = strlen(buf); if (linep + n + 1 > line + sizeof(line)) { syslog(LOG_DEBUG, "%s", line); linep = line;