diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-05-23 18:32:53 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-05-23 18:32:53 +0000 |
commit | 61899d3d7306e5011bc7fe53eefdb448b2885904 (patch) | |
tree | a52067ef24d1b7297d620e9e9cad8ba765ab60dd /usr.bin/less | |
parent | 7f59f6031dcac3e55e8ab63939998f7b7a8a72fe (diff) |
Fix removing of trailing space in file name completion list.
From Matthew Haub; ok krw@
Diffstat (limited to 'usr.bin/less')
-rw-r--r-- | usr.bin/less/filename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/filename.c b/usr.bin/less/filename.c index 40c52c1d85a..ede2c6e1cb9 100644 --- a/usr.bin/less/filename.c +++ b/usr.bin/less/filename.c @@ -676,7 +676,7 @@ lglob(filename) /* * Overwrite the final trailing space with a null terminator. */ - *--p = '\0'; + gfilename[strlen(gfilename) - 1] = '\0'; GLOB_LIST_DONE(list); } #else |