diff options
author | Max Kellermann <max@duempel.org> | 2008-12-28 19:54:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-28 19:54:49 +0100 |
commit | 859aac7242fe3767c19c1bfff73d5e6159cbad31 (patch) | |
tree | 2e433f6ec1a820d99ad171ffd6a49a6828ddd0e4 /src/stored_playlist.c | |
parent | 2598cdd86814c7792a431470a9143d609399697b (diff) |
utils: removed myFgets()
Replaced myFgets() with fgets() + g_strchomp().
Diffstat (limited to 'src/stored_playlist.c')
-rw-r--r-- | src/stored_playlist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stored_playlist.c b/src/stored_playlist.c index 78977bf69..034dfccb6 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -149,13 +149,15 @@ spl_load(const char *utf8path) list = g_ptr_array_new(); - while (myFgets(buffer, sizeof(buffer), file)) { + while (fgets(buffer, sizeof(buffer), file)) { char *s = buffer; const char *path_utf8; if (*s == PLAYLIST_COMMENT) continue; + g_strchomp(buffer); + if (!isRemoteUrl(s)) { struct song *song; |