mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 01:10:47 -08:00
(Fread_file_name_internal): Use SBYTES (not SCHARS) to
check the tailing slash of a filename.
This commit is contained in:
parent
2eae97d0f4
commit
db8ab0f587
1 changed files with 1 additions and 1 deletions
|
|
@ -6118,7 +6118,7 @@ DEFUN ("read-file-name-internal", Fread_file_name_internal, Sread_file_name_inte
|
|||
Lisp_Object tem = XCAR (all);
|
||||
int len;
|
||||
if (STRINGP (tem) &&
|
||||
(len = SCHARS (tem), len > 0) &&
|
||||
(len = SBYTES (tem), len > 0) &&
|
||||
IS_DIRECTORY_SEP (SREF (tem, len-1)))
|
||||
comp = Fcons (tem, comp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue