changeset 90664:aa6d1499ee0a

(Fread_file_name_internal): Use SBYTES (not SCHARS) to check the tailing slash of a filename.
author Kenichi Handa <handa@m17n.org>
date Mon, 20 Nov 2006 12:10:54 +0000
parents 62483065cf2b
children 38ad9fa1876b
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Fri Nov 17 11:07:49 2006 +0000
+++ b/src/fileio.c	Mon Nov 20 12:10:54 2006 +0000
@@ -6118,7 +6118,7 @@
 	      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);
 	    }