utils: removed myFgets()

Replaced myFgets() with fgets() + g_strchomp().
This commit is contained in:
Max Kellermann
2008-12-28 19:54:49 +01:00
parent 2598cdd868
commit 859aac7242
10 changed files with 38 additions and 32 deletions

View File

@@ -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;