aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorGlenn Morris2014-10-29 22:15:28 -0700
committerGlenn Morris2014-10-29 22:15:28 -0700
commit52b410c60aebeb769ec9580af25ca50df2a44751 (patch)
treeba5de0b896c5ea410ceb2f2f1866c0fac73ea236 /src/fileio.c
parentcc99f920f507d28bb1422f8a3d52723ddc734c8a (diff)
parent237bf45a48999d5a8a3617822dddf3ea305bc269 (diff)
downloademacs-52b410c60aebeb769ec9580af25ca50df2a44751.tar.gz
emacs-52b410c60aebeb769ec9580af25ca50df2a44751.zip
Merge from emacs-24; up to 117634
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 4ba1c5914e8..cdbd0be28ad 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1163,7 +1163,7 @@ filesystem tree, not (expand-file-name ".." dirname). */)
1163 char newdir_utf8[MAX_UTF8_PATH]; 1163 char newdir_utf8[MAX_UTF8_PATH];
1164 1164
1165 filename_from_ansi (newdir, newdir_utf8); 1165 filename_from_ansi (newdir, newdir_utf8);
1166 tem = build_string (newdir_utf8); 1166 tem = make_unibyte_string (newdir_utf8, strlen (newdir_utf8));
1167 } 1167 }
1168 else 1168 else
1169#endif 1169#endif
@@ -1199,7 +1199,7 @@ filesystem tree, not (expand-file-name ".." dirname). */)
1199 /* `getpwnam' may return a unibyte string, which will 1199 /* `getpwnam' may return a unibyte string, which will
1200 bite us since we expect the directory to be 1200 bite us since we expect the directory to be
1201 multibyte. */ 1201 multibyte. */
1202 tem = build_string (newdir); 1202 tem = make_unibyte_string (newdir, strlen (newdir));
1203 newdirlim = newdir + SBYTES (tem); 1203 newdirlim = newdir + SBYTES (tem);
1204 if (multibyte && !STRING_MULTIBYTE (tem)) 1204 if (multibyte && !STRING_MULTIBYTE (tem))
1205 { 1205 {