diff options
Diffstat (limited to 'usr.bin/less/line.c')
-rw-r--r-- | usr.bin/less/line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/line.c b/usr.bin/less/line.c index 773693c0c44..bb9caa6e18a 100644 --- a/usr.bin/less/line.c +++ b/usr.bin/less/line.c @@ -169,7 +169,7 @@ plinenum(pos) n = strlen(buf); if (n < MIN_LINENUM_WIDTH) n = MIN_LINENUM_WIDTH; - snprintf(linebuf+curr, sizeof(linebuf)-curr, "%*s ", n, buf); + snprintf(linebuf+curr, size_linebuf-curr, "%*s ", n, buf); n++; /* One space after the line number. */ for (i = 0; i < n; i++) attr[curr+i] = AT_NORMAL; |