diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-28 14:19:07 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-28 14:19:07 +0000 |
commit | 90e4cb1c23fc7009c02614cac0b52d9ae88ee663 (patch) | |
tree | 9fbcacca86e52bac0aff4809e8153f0d4e4a5400 | |
parent | 8d190244d21a4d40bb9e8f7d51aa09ca1888de09 (diff) | |
download | mpv-90e4cb1c23fc7009c02614cac0b52d9ae88ee663.tar.bz2 mpv-90e4cb1c23fc7009c02614cac0b52d9ae88ee663.tar.xz |
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
-rw-r--r-- | libmenu/menu_filesel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmenu/menu_filesel.c b/libmenu/menu_filesel.c index 971fd37af0..ff28b2bfc1 100644 --- a/libmenu/menu_filesel.c +++ b/libmenu/menu_filesel.c @@ -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); |