diff options
Diffstat (limited to 'libmenu/menu_filesel.c')
-rw-r--r-- | libmenu/menu_filesel.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libmenu/menu_filesel.c b/libmenu/menu_filesel.c index 6247e4073c..1321702945 100644 --- a/libmenu/menu_filesel.c +++ b/libmenu/menu_filesel.c @@ -64,7 +64,7 @@ struct menu_priv_s { char* file_action; char* dir_action; char** actions; - char* filter; + char* filter; }; static struct menu_priv_s cfg_dflt = { @@ -104,7 +104,7 @@ static char* replace_path(char* title , char* dir , int escape) { if(p) { int tl = strlen(title); int dl = strlen(dir); - int t1l = p-title; + int t1l = p-title; int l = tl - 2 + dl; char *r, *n, *d = dir; @@ -295,7 +295,7 @@ static int open_dir(menu_t* menu,char* args) { mp_msg(MSGT_GLOBAL,MSGL_ERR,MSGTR_LIBMENU_ReallocError, strerror(errno)); n--; goto bailout; - } + } namelist=tp; } @@ -305,7 +305,7 @@ static int open_dir(menu_t* menu,char* args) { n--; goto bailout; } - + strcpy(namelist[n], dp->d_name); if(S_ISDIR(st.st_mode)) strcat(namelist[n], "/"); @@ -433,7 +433,7 @@ static int open_fs(menu_t* menu, char* args) { if (!path || path[0] == '\0') { struct stat st; int path_fp; - + path_fp = open (MENU_KEEP_PATH, O_RDONLY); if (path_fp >= 0) { if (!fstat (path_fp, &st) && (st.st_size > 0)) { @@ -449,7 +449,7 @@ static int open_fs(menu_t* menu, char* args) { } } } - + getcwd(wd,PATH_MAX); if (!path || path[0] == '\0') { #if 0 @@ -495,7 +495,7 @@ static int open_fs(menu_t* menu, char* args) { return r; } - + const menu_info_t menu_info_filesel = { "File seletor menu", "filesel", |