summaryrefslogtreecommitdiffstats
path: root/contrib/nvi/vi/vs_refresh.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-02 15:18:45 +0000
committerbde <bde@FreeBSD.org>1998-08-02 15:18:45 +0000
commitdbc09be291ed507f26f3b2f3fbad6b02ef6bf476 (patch)
tree447936f1245497e41047f88a616f368a498ba092 /contrib/nvi/vi/vs_refresh.c
parent559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9 (diff)
downloadFreeBSD-src-dbc09be291ed507f26f3b2f3fbad6b02ef6bf476.zip
FreeBSD-src-dbc09be291ed507f26f3b2f3fbad6b02ef6bf476.tar.gz
Fixed printf format errors.
Diffstat (limited to 'contrib/nvi/vi/vs_refresh.c')
-rw-r--r--contrib/nvi/vi/vs_refresh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/nvi/vi/vs_refresh.c b/contrib/nvi/vi/vs_refresh.c
index 8158760..d954c62 100644
--- a/contrib/nvi/vi/vs_refresh.c
+++ b/contrib/nvi/vi/vs_refresh.c
@@ -845,8 +845,8 @@ vs_modeline(sp)
cols = sp->cols - 1;
if (O_ISSET(sp, O_RULER)) {
vs_column(sp, &curcol);
- len =
- snprintf(buf, sizeof(buf), "%lu,%lu", sp->lno, curcol + 1);
+ len = snprintf(buf, sizeof(buf), "%lu,%lu",
+ (u_long)sp->lno, (u_long)(curcol + 1));
midpoint = (cols - ((len + 1) / 2)) / 2;
if (curlen < midpoint) {
OpenPOWER on IntegriCloud