[Mplayer-cvslog] CVS: main/libmenu menu_filesel.c,1.4,1.5
Arpi of Ize
arpi at mplayerhq.hu
Sat Dec 28 15:19:10 CET 2002
Update of /cvsroot/mplayer/main/libmenu
In directory mail:/var/tmp.root/cvs-serv28866
Modified Files:
menu_filesel.c
Log Message:
some 10l bugfixes
patch by Christian Ohm <chr.ohm at gmx.net>
Index: menu_filesel.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmenu/menu_filesel.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- menu_filesel.c 4 Dec 2002 23:41:04 -0000 1.4
+++ menu_filesel.c 28 Dec 2002 14:19:07 -0000 1.5
@@ -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);
More information about the MPlayer-cvslog
mailing list