diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-06-06 20:16:44 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-06-06 20:16:44 +0200 |
commit | 1216f153461893e10ded8007e808da3a62483e7b (patch) | |
tree | dad27b404d35537b9b214a075061d04708f14352 /src/slideshow.c | |
parent | 8f1f369b478fda735b7ec3235a4b9dec42729160 (diff) |
next/priv directory: Use PATH_MAX instead of FEH_MAX_DIRNAME_LEN
Diffstat (limited to 'src/slideshow.c')
-rw-r--r-- | src/slideshow.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/slideshow.c b/src/slideshow.c index 2af78c9..7ff4f39 100644 --- a/src/slideshow.c +++ b/src/slideshow.c @@ -324,14 +324,14 @@ void slideshow_change_image(winwidget winwid, int change, int render) break; case SLIDE_JUMP_NEXT_DIR: { - char old_dir[FEH_MAX_DIRNAME_LEN], new_dir[FEH_MAX_DIRNAME_LEN]; + char old_dir[PATH_MAX], new_dir[PATH_MAX]; int j; - feh_file_dirname(old_dir, FEH_FILE(current_file->data), FEH_MAX_DIRNAME_LEN); + feh_file_dirname(old_dir, FEH_FILE(current_file->data), PATH_MAX); for (j = 0; j < our_filelist_len; j++) { current_file = feh_list_jump(filelist, current_file, FORWARD, 1); - feh_file_dirname(new_dir, FEH_FILE(current_file->data), FEH_MAX_DIRNAME_LEN); + feh_file_dirname(new_dir, FEH_FILE(current_file->data), PATH_MAX); if (strcmp(old_dir, new_dir) != 0) break; } @@ -340,17 +340,17 @@ void slideshow_change_image(winwidget winwid, int change, int render) break; case SLIDE_JUMP_PREV_DIR: { - char old_dir[FEH_MAX_DIRNAME_LEN], new_dir[FEH_MAX_DIRNAME_LEN]; + char old_dir[PATH_MAX], new_dir[PATH_MAX]; int j; /* Start the search from the previous file in case we are on the first file of a directory */ current_file = feh_list_jump(filelist, current_file, BACK, 1); - feh_file_dirname(old_dir, FEH_FILE(current_file->data), FEH_MAX_DIRNAME_LEN); + feh_file_dirname(old_dir, FEH_FILE(current_file->data), PATH_MAX); for (j = 0; j < our_filelist_len; j++) { current_file = feh_list_jump(filelist, current_file, BACK, 1); - feh_file_dirname(new_dir, FEH_FILE(current_file->data), FEH_MAX_DIRNAME_LEN); + feh_file_dirname(new_dir, FEH_FILE(current_file->data), PATH_MAX); if (strcmp(old_dir, new_dir) != 0) break; } |