diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-02-28 19:30:33 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-02-28 19:30:33 +0000 |
commit | 86f7cd390ed8e186e4a281573a28eb1dfd376997 (patch) | |
tree | ac8b0ca3123dfc62d6c6391422f7934919212f26 /usr.bin/less/prompt.c | |
parent | a400e25c8cf33c9ef3152f9f149cc64f0f5d6345 (diff) |
%t didn't properly remove trailing spaces from the end of the prompt.
patch from daniel malament in pr 6235
ok millert@
Diffstat (limited to 'usr.bin/less/prompt.c')
-rw-r--r-- | usr.bin/less/prompt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/less/prompt.c b/usr.bin/less/prompt.c index ddc5eaca025..fe16cf06654 100644 --- a/usr.bin/less/prompt.c +++ b/usr.bin/less/prompt.c @@ -349,6 +349,7 @@ protochar(c, where, iseditproto) case 't': /* Truncate trailing spaces in the message */ while (mp > message && mp[-1] == ' ') mp--; + *mp = '\0'; break; case 'T': /* Type of list */ #if TAGS |