From 602040466d9273df9682fcce612a17586db3c20a Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 19 Mar 2003 12:09:37 +0000 Subject: [PATCH] (Fread_file_name): Fix previous change. --- src/fileio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index f7bfdc16f9d..a75a0e22b75 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -6063,7 +6063,7 @@ provides a file dialog box. */) SBYTES (decoded_homedir)) && IS_DIRECTORY_SEP (SREF (dir, SBYTES (decoded_homedir)))) { - dir = Fsubstring (dir, make_number (SCHARS (decoded_homedir) + 1), Qnil); + dir = Fsubstring (dir, make_number (SCHARS (decoded_homedir)), Qnil); dir = concat2 (build_string ("~"), dir); } /* Likewise for default_filename. */ @@ -6075,7 +6075,7 @@ provides a file dialog box. */) { default_filename = Fsubstring (default_filename, - make_number (SCHARS (decoded_homedir) + 1), Qnil); + make_number (SCHARS (decoded_homedir)), Qnil); default_filename = concat2 (build_string ("~"), default_filename); } if (!NILP (default_filename)) -- 2.39.2