From: Paul Mackerras Date: Tue, 28 Apr 1998 23:37:30 +0000 (+0000) Subject: Make packet printing stuff use vfmtmsg X-Git-Tag: RELEASE_2_3_6~71 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=a0b38f1d1cbd6d74eb1ac067c3db3ab4cf0012c7 Make packet printing stuff use vfmtmsg --- 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;