Commit ec9a02a239d42b24a897e985c7cd3c3833d68f33

Pino Toscano 2013-07-24T10:05:02

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.