Get rid of the usage of PATH_MAX
authorPino Toscano <toscano.pino@tiscali.it>
Wed, 24 Jul 2013 08:05:02 +0000 (10:05 +0200)
committerRan Benita <ran234@gmail.com>
Wed, 24 Jul 2013 09:08:11 +0000 (12:08 +0300)
commitec9a02a239d42b24a897e985c7cd3c3833d68f33
tree1de40c63482a024e6cc7b5dc6db42877ed8c312c
parent806d24b1a511494dccec7ae8a58edbc87dd5f6e1
Get rid of the usage of PATH_MAX

PATH_MAX is optional in POSIX, so avoid its unconditional usage
allocating and freeing buffers as needed.
To avoid too many malloc/free in the for loop in FindFileInXkbPath,
a buffer is grown according to the size needed at each iteration.
src/xkbcomp/include.c
test/common.c
test/test.h