* main.c (copy_other_pathname): Trailing slash in not always

inserted when it should be.
This commit is contained in:
Pavel Roskin 2003-09-29 16:38:03 +00:00
parent 3ba2ed6891
commit e65f371486
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-09-29 Koblinger Egmont <egmont@uhulinux.hu>
* main.c (copy_other_pathname): Trailing slash in not always
inserted when it should be.
2003-09-29 Andrew V. Samoilov <sav@bcs.zp.ua>
* find.c (do_search): Use strncpy() instead if unsafe strcpy().

View File

@ -1136,7 +1136,7 @@ copy_other_pathname (void)
return;
command_insert (cmdline, opanel->cwd, 0);
if (cpanel->cwd[strlen (opanel->cwd) - 1] != PATH_SEP)
if (opanel->cwd[strlen (opanel->cwd) - 1] != PATH_SEP)
command_insert (cmdline, PATH_SEP_STR, 0);
}