Commit 3e892ae3 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(Fread_file_name_internal): Use SBYTES (not SCHARS) to

check the tailing slash of a filename.
parent 565f08cd
......@@ -6202,7 +6202,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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment