Replace the static PATH_MAX-sized buffers with dynamic allocation of the string containing the temporary file.
The only drawback is the leak in some of the tests of the char* of the temporary file, in case of failure; considering that in such cases also other stuff is left "dirty" (like afCloseFile not called and the test file not removed), I deemed this leak negligible.
This helps with systems (such as GNU/Hurd) which do not provide PATH_MAX.
The test suite passes on both GNU/Hurd and GNU/Linux current Debian Wheezy system).
Replace the static PATH_MAX-sized buffers with dynamic allocation of the string containing the temporary file. The only drawback is the leak in some of the tests of the char* of the temporary file, in case of failure; considering that in such cases also other stuff is left "dirty" (like afCloseFile not called and the test file not removed), I deemed this leak negligible.
This helps with systems (such as GNU/Hurd) which do not provide PATH_MAX.
The test suite passes on both GNU/Hurd and GNU/Linux current Debian Wheezy system).