snprintf(item1, maxlen, "   %-80s   (%s)", title, filename); 
snprintf(item1, maxlen, "   %-80s      (%s)", title, filename); 
void w32g_update_playlist_pos(int pos){    int i, cur, modified;    HWND hListBox;    if(!(hListBox = playlist_box()))	return;    cur = ListBox_GetCurSel(hListBox);    modified = 0;	i = pos;	if(i >= 0 && i < playlist.nfiles)    {	char *filename, *title, *item1, *item2;	int maxlen, item2_len;	int notitle = 0;	filename = playlist.list[i].filename;	title = playlist.list[i].title;	if(title == NULL || title[0] == '\0')	{	    if(playlist.list[i].info->file_type == IS_ERROR_FILE)		title = " --SKIP-- ";		else		{		title = " -------- ";		notitle = 1;		}	}	maxlen = strlen(filename) + strlen(title) + 32 + 80;	item1 = (char *)new_segment(&tmpbuffer, maxlen);	if(!notitle)	{	if(i == playlist.selected)	    snprintf(item1, maxlen, "==>%-80s   (%s)", title, filename);	else	    snprintf(item1, maxlen, "   %-80s   (%s)", title, filename);	} else	{	if(i == playlist.selected)	    snprintf(item1, maxlen, "==>%s   (%s)", title, filename);	else	    snprintf(item1, maxlen, "   %s   (%s)", title, filename);	}	item2_len = ListBox_GetTextLen(hListBox, i);	item2 = (char *)new_segment(&tmpbuffer, item2_len + 1);	ListBox_GetText(hListBox, i, item2);	if(strcmp(item1, item2) != 0)	{	    ListBox_DeleteString(hListBox, i);	    ListBox_InsertString(hListBox, i, item1);	    modified = 1;	}	reuse_mblock(&tmpbuffer);    }    if(modified && cur==pos)    {	if(cur < 0)	    cur = playlist.selected;	else if(cur >= playlist.nfiles - 1)	    cur = playlist.nfiles - 1;	ListBox_SetCurSel(hListBox, cur);	SetNumListWnd(cur,playlist.nfiles);    }}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/b145888026ba74b152bd275692a491408aa2b59e/w32g_playlist.c/buggy/interface/w32g_playlist.c