changeset 74097:fcd1f8fd7afe

(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:14:46 +0000
parents 744c4854909d
children 6606f53702d8
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Mon Nov 20 12:14:29 2006 +0000
+++ b/src/fileio.c	Mon Nov 20 12:14:46 2006 +0000
@@ -6202,7 +6202,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);
 	    }