diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index d49a9361b8..dc7f728aca 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -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));