]> code.delx.au - gnu-emacs/commitdiff
(directory_files_internal): Fix a braino.
authorGerd Moellmann <gerd@gnu.org>
Thu, 9 Nov 2000 15:42:35 +0000 (15:42 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 9 Nov 2000 15:42:35 +0000 (15:42 +0000)
src/dired.c

index c6466bb967ab19fe6914902b01e662d784978372..9fd9bffc4f161c111d36bf30451d8c192178714e 100644 (file)
@@ -251,8 +251,7 @@ directory_files_internal (directory, full, match, nosort, attrs)
                         directory_nbytes);
                  
                  if (needsep)
-                   XSTRING (fullname)->data[directory_nbytes + 1]
-                     = DIRECTORY_SEP;
+                   XSTRING (fullname)->data[directory_nbytes] = DIRECTORY_SEP;
                  
                  bcopy (XSTRING (name)->data,
                         XSTRING (fullname)->data + directory_nbytes + needsep,