ac_fs: Fix potential issue in ac_fs_mkdir_p()
ac_fs: Fix potential issue in ac_fs_mkdir_p()

GitHub code scanning picked up a potential problem in ac_fs_mkdir_p()
where we could overwrite the last '\0' in mdir[] with a '/'.

We need to make mdir 1 bigger to allow for the fact that we add a
trailing '/' to the end of the directory path each time around the loop,
ready for the next directory component to get added.

Switch to using PATH_MAX for the buffer size and add 1 to it, we can
then just against PATH_MAX for the path length rather than the size of
the mdir buffer.

Signed-off-by: Andrew Clayton <02e0a999c50b1f88df7a8f5a04e1b76b35ea6a88@digital-domain.net>

ac000/libac