From 93cb1af7cebf90b48a6daa0a68622b8dfaabab51 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 3 Apr 1999 06:58:32 +0000 Subject: Fixed printf format errors. --- contrib/nvi/common/msg.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'contrib/nvi') diff --git a/contrib/nvi/common/msg.c b/contrib/nvi/common/msg.c index bdf5c02..9fbd738 100644 --- a/contrib/nvi/common/msg.c +++ b/contrib/nvi/common/msg.c @@ -617,13 +617,14 @@ msgq_status(sp, lno, flags) memcpy(p, t, len); p += len; } else { - t = msg_cat(sp, "027|line %lu of %lu [%ld%%]", &len); - (void)sprintf(p, t, lno, last, (lno * 100) / last); + t = msg_cat(sp, "027|line %lu of %lu [%lu%%]", &len); + (void)sprintf(p, t, (u_long)lno, (u_long)last, + (u_long)(lno * 100) / last); p += strlen(p); } } else { t = msg_cat(sp, "029|line %lu", &len); - (void)sprintf(p, t, lno); + (void)sprintf(p, t, (u_long)lno); p += strlen(p); } #ifdef DEBUG -- cgit v1.1