[Mvpmc-cvs] mvpmc/src playlist.c,1.3,1.4
Status: Alpha
Brought to you by:
gettler
From: Jon G. <ge...@us...> - 2005-02-17 03:16:23
|
Update of /cvsroot/mvpmc/mvpmc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8744/src Modified Files: playlist.c Log Message: Fix the playlists to not display the \r character that might be there if the playlist was created under windows. Index: playlist.c =================================================================== RCS file: /cvsroot/mvpmc/mvpmc/src/playlist.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** playlist.c 17 Jan 2005 03:47:45 -0000 1.3 --- playlist.c 17 Feb 2005 03:16:14 -0000 1.4 *************** *** 246,249 **** --- 246,251 ---- pl_item->prev = NULL; item_attr.select = select_callback; + if (ptr[strlen(ptr)-1] == '\r') + ptr[strlen(ptr)-1] = '\0'; mvpw_add_menu_item(playlist_widget, ptr, pl_item->key, &item_attr); |