summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_viewer/tv_menu.c')
-rw-r--r--apps/plugins/text_viewer/tv_menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_menu.c b/apps/plugins/text_viewer/tv_menu.c
index d9b5343490..eb92782385 100644
--- a/apps/plugins/text_viewer/tv_menu.c
+++ b/apps/plugins/text_viewer/tv_menu.c
@@ -254,6 +254,7 @@ static bool tv_font_setting(void)
254 int new_font = 0; 254 int new_font = 0;
255 int old_font; 255 int old_font;
256 bool res; 256 bool res;
257 unsigned char font_path[MAX_PATH];
257 258
258 struct tree_context *tree; 259 struct tree_context *tree;
259 struct tree_context backup; 260 struct tree_context backup;
@@ -266,7 +267,8 @@ static bool tv_font_setting(void)
266 rb->strlcat(backup.currdir, "/", MAX_PATH); 267 rb->strlcat(backup.currdir, "/", MAX_PATH);
267 rb->strlcat(backup.currdir, dc[tree->selected_item].name, MAX_PATH); 268 rb->strlcat(backup.currdir, dc[tree->selected_item].name, MAX_PATH);
268 tree->dirfilter = &dirfilter; 269 tree->dirfilter = &dirfilter;
269 rb->set_current_file(FONT_DIR"/"); 270 rb->snprintf(font_path, MAX_PATH, "%s/", FONT_DIR);
271 rb->set_current_file(font_path);
270 count = tree->filesindir; 272 count = tree->filesindir;
271 273
272 struct opt_items names[count]; 274 struct opt_items names[count];