# HG changeset patch # User arpi # Date 1041085147 0 # Node ID f88ba181ecf239b8b2198a3afa731ccac7dadf54 # Parent a61d1b326beb9576ebc93f8325219e117f2b15b2 some 10l bugfixes patch by Christian Ohm diff -r a61d1b326beb -r f88ba181ecf2 libmenu/menu_filesel.c --- 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);