Use PATH_MAX_LENGTH

This commit is contained in:
twinaphex 2015-10-25 08:51:04 +01:00
parent b5768cb94c
commit 759a01b74f

View File

@ -244,7 +244,7 @@ int generic_action_ok_displaylist_push(const char *path,
break;
case ACTION_OK_DL_PARENT_DIRECTORY_PUSH:
{
char parent_dir[PATH_MAX];
char parent_dir[PATH_MAX_LENGTH];
fill_pathname_parent_dir(parent_dir, action_path, sizeof(parent_dir));
fill_pathname_parent_dir(parent_dir, parent_dir, sizeof(parent_dir));