* src/dired.c: Add comment and code explaining magic number.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Feb 2011 19:08:18 +0000 (11:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Feb 2011 19:08:18 +0000 (11:08 -0800)
src/dired.c

index ce2a3d1..9606368 100644 (file)
@@ -937,7 +937,11 @@ so last access time will always be midnight of that day.  */)
   Lisp_Object dirname;
   struct stat sdir;
 #endif /* BSD4_2 */
-  char modes[12];
+
+  /* An array to hold the mode string generated by filemodestring,
+     including its terminating space and null byte.  */
+  char modes[sizeof "-rwxr-xr-x "];
+
   Lisp_Object handler;
   struct gcpro gcpro1;
   char *uname = NULL, *gname = NULL;