diff options
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r-- | apps/plugins/viewer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index a8ef5eb1e8..8590283c57 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -1074,7 +1074,7 @@ static void viewer_load_settings(void) /* same name as global, but not the same | |||
1074 | if (i < data->bookmarked_files_count) | 1074 | if (i < data->bookmarked_files_count) |
1075 | { | 1075 | { |
1076 | /* it is in the list, write everything back in the correct order, and reload the file correctly */ | 1076 | /* it is in the list, write everything back in the correct order, and reload the file correctly */ |
1077 | settings_fd = rb->creat(BOOKMARKS_FILE, O_WRONLY); | 1077 | settings_fd = rb->creat(BOOKMARKS_FILE); |
1078 | if (settings_fd >=0 ) | 1078 | if (settings_fd >=0 ) |
1079 | { | 1079 | { |
1080 | if (data->bookmarked_files_count > MAX_BOOKMARKED_FILES) | 1080 | if (data->bookmarked_files_count > MAX_BOOKMARKED_FILES) |
@@ -1092,7 +1092,7 @@ static void viewer_load_settings(void) /* same name as global, but not the same | |||
1092 | } | 1092 | } |
1093 | else /* not in list, write the list to the file */ | 1093 | else /* not in list, write the list to the file */ |
1094 | { | 1094 | { |
1095 | settings_fd = rb->creat(BOOKMARKS_FILE, O_WRONLY); | 1095 | settings_fd = rb->creat(BOOKMARKS_FILE); |
1096 | if (settings_fd >=0 ) | 1096 | if (settings_fd >=0 ) |
1097 | { | 1097 | { |
1098 | if (++(data->bookmarked_files_count) > MAX_BOOKMARKED_FILES) | 1098 | if (++(data->bookmarked_files_count) > MAX_BOOKMARKED_FILES) |
@@ -1120,7 +1120,7 @@ static void viewer_load_settings(void) /* same name as global, but not the same | |||
1120 | static void viewer_save_settings(void)/* same name as global, but not the same file.. */ | 1120 | static void viewer_save_settings(void)/* same name as global, but not the same file.. */ |
1121 | { | 1121 | { |
1122 | int settings_fd; | 1122 | int settings_fd; |
1123 | settings_fd = rb->creat(SETTINGS_FILE, O_WRONLY); /* create the settings file */ | 1123 | settings_fd = rb->creat(SETTINGS_FILE); /* create the settings file */ |
1124 | 1124 | ||
1125 | rb->write (settings_fd, &prefs, sizeof(struct preferences)); | 1125 | rb->write (settings_fd, &prefs, sizeof(struct preferences)); |
1126 | rb->close(settings_fd); | 1126 | rb->close(settings_fd); |