diff options
author | bde <bde@FreeBSD.org> | 1999-04-03 06:58:32 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-04-03 06:58:32 +0000 |
commit | 93cb1af7cebf90b48a6daa0a68622b8dfaabab51 (patch) | |
tree | 0a50bf2d3aa4e3826dab7fdac246d1787e964583 /contrib | |
parent | 96eeae5a31e28bf71b46c22b933a640f64069f01 (diff) | |
download | FreeBSD-src-93cb1af7cebf90b48a6daa0a68622b8dfaabab51.zip FreeBSD-src-93cb1af7cebf90b48a6daa0a68622b8dfaabab51.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/nvi/common/msg.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 |