xlog: xdir -- use PATH_MAX for dirname
The PATH_MAX is the longest path including end
of string, no need for +1 byte.
Same time use sizeof(dirname) to not bound how
exactly dirname is declared.
Signed-off-by:
Cyrill Gorcunov <gorcunov@gmail.com>
Loading
Please register or sign in to comment