[MPlayer-dev-eng] [PATCH] some bugs in the osd menu

Christian Ohm chr.ohm at gmx.net
Tue Dec 24 03:04:17 CET 2002


now this patch should work.
-- 
A computer scientist is someone who fixes things that aren't broken.
-------------- next part --------------
Index: libmenu/menu_filesel.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmenu/menu_filesel.c,v
retrieving revision 1.4
diff -u -r1.4 menu_filesel.c
--- libmenu/menu_filesel.c	4 Dec 2002 23:41:04 -0000	1.4
+++ libmenu/menu_filesel.c	24 Dec 2002 01:59:10 -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,6 +175,7 @@
   }
   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;


More information about the MPlayer-dev-eng mailing list