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


As mentioned by Brian the About option is avaible on the # menu.  I didn't
realize the code had such a low arbitrary limit to path lengths.
(Actually I probably did at one point but forgot.)  Anyway included in
this message is a patch that will hopefully help you out.

It is still not the "right" solution since it uses _POSIX_PATH_MAX which
is 255 and the lowest posible path max for posix systems.  (Shouldn't
that be MIN then?  Yeah someone should wack the posix people on the head.)
Getting the true PATH_MAX must be done at runtime and therefore prevents
it's use as an array size.

This is my first attempt to attach a file under the newer elm.  Let me know
if it is preferable to just paste the patch files into my text messages.

Dennis Payne

--- we_wind.c.orig	Tue Apr 25 22:36:49 2000
+++ we_wind.c	Tue Apr 25 22:37:31 2000
@@ -6,6 +6,7 @@
 #include "messages.h"
 #include "edit.h"
+#include <limits.h>
 #define MAXSVSTR 20
@@ -275,7 +276,7 @@
  extern char *e_hlp;
  extern int nblst;
  extern WOPT *blst;
- char *header = NULL, tmp[80];
+ char *header = NULL, tmp[_POSIX_PATH_MAX];
  if (f->dtmd <= 'Z')