diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-02 02:07:07 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-02 02:07:07 +0000 |
commit | 3c0c34bcb73ac7fa761b5b685f367512bb466b97 (patch) | |
tree | b4161d3eba175dcccaf8341c58b1b114f6eaab97 /src/directory.c | |
parent | 48dce62e4f79c125df24f15a6d0fe5a5e1bc19d2 (diff) | |
download | mpd-3c0c34bcb73ac7fa761b5b685f367512bb466b97.tar.gz mpd-3c0c34bcb73ac7fa761b5b685f367512bb466b97.tar.xz mpd-3c0c34bcb73ac7fa761b5b685f367512bb466b97.zip |
'\n' are bad
git-svn-id: https://svn.musicpd.org/mpd/trunk@1296 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/directory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/directory.c b/src/directory.c index 0666692ae..79b3b1bb9 100644 --- a/src/directory.c +++ b/src/directory.c @@ -356,6 +356,7 @@ int removeDeletedFromDirectory(Directory * directory) { while((ent = readdir(dir))) { if(ent->d_name[0]=='.') continue; /* hide hidden stuff */ + if(strchr(ent->d_name, '\n')) continue; utf8 = fsCharsetToUtf8(ent->d_name); @@ -558,6 +559,7 @@ int updateDirectory(Directory * directory) { while((ent = readdir(dir))) { if(ent->d_name[0]=='.') continue; /* hide hidden stuff */ + if(strchr(ent->d_name, '\n')) continue; utf8 = fsCharsetToUtf8(ent->d_name); @@ -604,6 +606,7 @@ int exploreDirectory(Directory * directory) { DEBUG("explore: %s\n",dirname); while((ent = readdir(dir))) { if(ent->d_name[0]=='.') continue; /* hide hidden stuff */ + if(strchr(ent->d_name, '\n')) continue; utf8 = fsCharsetToUtf8(ent->d_name); |