diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index c160432a8c30..df944e386ab1 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);