diff options
Diffstat (limited to 'editors/xemacs-current/patches/patch-ak')
-rw-r--r-- | editors/xemacs-current/patches/patch-ak | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/editors/xemacs-current/patches/patch-ak b/editors/xemacs-current/patches/patch-ak new file mode 100644 index 00000000000..fb859c27e99 --- /dev/null +++ b/editors/xemacs-current/patches/patch-ak @@ -0,0 +1,24 @@ +$NetBSD: patch-ak,v 1.1 2007/06/30 17:59:03 joerg Exp $ + +--- src/dired.c.orig 2004-11-04 23:06:21.000000000 +0000 ++++ src/dired.c +@@ -22,6 +22,7 @@ Boston, MA 02111-1307, USA. */ + /* Synched up with: FSF 19.30. */ + + #include <config.h> ++#include <limits.h> + #include "lisp.h" + + #include "buffer.h" +@@ -104,7 +105,11 @@ If FILES-ONLY is the symbol t, then only + directory = Ffile_name_as_directory (directory); + directorylen = XSTRING_LENGTH (directory); + ++#ifdef NAME_MAX ++ statbuf = alloca_ibytes (directorylen + NAME_MAX + 1); ++#else + statbuf = alloca_ibytes (directorylen + MAXNAMLEN + 1); ++#endif + memcpy (statbuf, XSTRING_DATA (directory), directorylen); + statbuf_tail = statbuf + directorylen; + |