From 3e892ae3546b93850510ebd2d03eeb4495f6c88b Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 20 Nov 2006 12:14:46 +0000 Subject: [PATCH] (Fread_file_name_internal): Use SBYTES (not SCHARS) to check the tailing slash of a filename. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index fa7a2d0cd85..37afd37ad46 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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); } -- 2.39.2