emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/src dired.c


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs/src dired.c
Date: Mon, 13 Jul 2009 20:22:45 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Eli Zaretskii <eliz>    09/07/13 20:22:45

Modified files:
        src            : dired.c 

Log message:
        (directory_files_internal) [WINDOWSNT]: Don't make a local copy
        of dirfilename.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/dired.c?cvsroot=emacs&r1=1.165&r2=1.166

Patches:
Index: dired.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/dired.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -b -r1.165 -r1.166
--- dired.c     11 Jul 2009 15:45:13 -0000      1.165
+++ dired.c     13 Jul 2009 20:22:45 -0000      1.166
@@ -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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]