diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-18 18:39:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-18 18:39:53 +0000 |
commit | 97d1bc558891181c3d6a8a61c7d12e09adc47316 (patch) | |
tree | 8ccc2769cca9c2b9415e7252cc195499fa79b337 /usr.bin/less/line.c | |
parent | ad2e8442b523c98bc6898520d679c4532688ca9c (diff) |
Fix sizeof(char *) in snprintf that broke the -N option.
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; |