Mercurial > emacs
changeset 103880:6e6bdce4716b
(directory_files_internal) [WINDOWSNT]: Don't make a local copy
of dirfilename.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 13 Jul 2009 20:22:45 +0000 |
parents | 33055f2b5e31 |
children | af8ccc3ec158 |
files | src/dired.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dired.c Mon Jul 13 10:18:03 2009 +0000 +++ b/src/dired.c Mon Jul 13 20:22:45 2009 +0000 @@ -219,14 +219,9 @@ w32_save = Vw32_get_true_file_attributes; if (EQ (Vw32_get_true_file_attributes, Qlocal)) { - char *dirnm = SDATA (dirfilename); - char *fn = alloca (SBYTES (dirfilename) + 1); - - strncpy (fn, SDATA (dirfilename), SBYTES (dirfilename)); - fn[SBYTES (dirfilename)] = '\0'; /* w32.c:stat will notice these bindings and avoid calling GetDriveType for each file. */ - if (is_slow_fs (fn)) + if (is_slow_fs (SDATA (dirfilename))) Vw32_get_true_file_attributes = Qnil; else Vw32_get_true_file_attributes = Qt;