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