Mercurial > mplayer.hg
changeset 8613:f88ba181ecf2
some 10l bugfixes
patch by Christian Ohm <chr.ohm@gmx.net>
author | arpi |
---|---|
date | Sat, 28 Dec 2002 14:19:07 +0000 |
parents | a61d1b326beb |
children | 49e36bf2f342 |
files | libmenu/menu_filesel.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmenu/menu_filesel.c Sat Dec 28 14:17:38 2002 +0000 +++ b/libmenu/menu_filesel.c Sat Dec 28 14:19:07 2002 +0000 @@ -92,7 +92,7 @@ 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 @@ } 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);