diff options
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 |