The way MAXPATHLEN is used in fixincludes (server.c and fixincl.c) is wrong,
instead of defining a bogus value on platforms that do not have MAXPATHLEN
defined (i.e. GNU) one should try and use getcwd as follows:
char *dir = getcwd (NULL, 0);
instead of passing a buffer and a size.
This will only work on systems that use the GNU C Library.
Created attachment 9857 [details]
Don't use arbitrary limits.
The following fixes fixincludes.
2005-09-16 Alfred M. Szmidt <firstname.lastname@example.org>
* fixincl.c (quoted_file_exists): Use xmalloc to allocate memory
(create_file): Use xmalloc to allocate memory for FNAME.
* server.c (server_setup): Use dynamic allocation for BUFF.