The ANSI-C constant FILENAME_MAX is ludicrously small on some systems.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2005 20:08:25 +0000 (20:08 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2005 20:08:25 +0000 (20:08 +0000)
commit4afa6d8290c522a64507936e26f7b6fd2a3d7540
treea500d8a504d712ce5d05e53272535daffde0dbc4
parentbbaa7993383b7e7e664e8388e4545c9035f69295
The ANSI-C constant FILENAME_MAX is ludicrously small on some systems.
Use the POSIX PATH_MAX if it exists, and fall back to 1024 otherwise.
We should really allocate filenames dynamically if PATH_MAX isn't defined.

git-svn-id: svn://svn.tartarus.org/sgt/putty@6307 cda61777-01e9-0310-a592-d414129be87e
unix/uxstore.c