From a0b38f1d1cbd6d74eb1ac067c3db3ab4cf0012c7 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 28 Apr 1998 23:37:30 +0000 Subject: [PATCH] Make packet printing stuff use vfmtmsg --- pppd/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.2