mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
some 10l bugfixes
patch by Christian Ohm <chr.ohm@gmx.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8614 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8d190244d2
commit
90e4cb1c23
@ -92,7 +92,7 @@ typedef int (*kill_warn)(const void*, const void*);
|
||||
|
||||
static int mylstat(char *dir, char *file,struct stat* st) {
|
||||
int l = strlen(dir) + strlen(file);
|
||||
char s[l+1];
|
||||
char s[l+2];
|
||||
sprintf(s,"%s/%s",dir,file);
|
||||
return lstat(s,st);
|
||||
}
|
||||
@ -175,11 +175,13 @@ bailout:
|
||||
}
|
||||
while(n--) {
|
||||
e = calloc(1,sizeof(list_entry_t));
|
||||
e->p.next = NULL;
|
||||
e->p.txt = strdup(namelist[n]);
|
||||
if(strchr(namelist[n], '/') != NULL)
|
||||
e->d = 1;
|
||||
menu_list_add_entry(menu,e);
|
||||
free(namelist[n]);
|
||||
free(e);
|
||||
}
|
||||
free(namelist);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user