From 5c21bd33720a99e6cf3c62eec27d5d2dc648a7e3 Mon Sep 17 00:00:00 2001 From: gad Date: Sun, 20 Jun 2004 17:26:47 +0000 Subject: Fix the format-string in a call to err(). It was causing a warning if compiled on 4.x-stable. --- usr.sbin/newsyslog/newsyslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index c160432..df944e3 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -1801,7 +1801,7 @@ do_zipwork(struct zipwork_entry *zwork) else if (!pidzip) { /* The child process executes the compression command */ execl(pgm_path, pgm_path, "-f", zwork->zw_fname, (char *)0); - err(1, pgm_path); + err(1, "%s", pgm_path); } wpid = waitpid(pidzip, &zstatus, 0); -- cgit v1.1