emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r103422: * src/dired.c: Add comment a


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103422: * src/dired.c: Add comment and code explaining magic number.
Date: Fri, 25 Feb 2011 11:08:18 -0800
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103422
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Fri 2011-02-25 11:08:18 -0800
message:
  * src/dired.c: Add comment and code explaining magic number.
modified:
  src/dired.c
=== modified file 'src/dired.c'
--- a/src/dired.c       2011-02-25 06:30:50 +0000
+++ b/src/dired.c       2011-02-25 19:08:18 +0000
@@ -937,7 +937,11 @@
   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;


reply via email to

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