diff options
author | Max Kellermann <max@duempel.org> | 2012-04-05 00:45:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-04-05 00:45:39 +0200 |
commit | c22cbbf8280bb35c8fee5ae3931d3bc08b70099f (patch) | |
tree | 4654b9834f51c32746e2f72ce64191149647d87e /src/uri.c | |
parent | f930f37d35995f0fc07f70aefc41babc0db1757e (diff) | |
parent | 5acee73fc85e44179120a5818247fc0760038cff (diff) | |
download | mpd-c22cbbf8280bb35c8fee5ae3931d3bc08b70099f.tar.gz mpd-c22cbbf8280bb35c8fee5ae3931d3bc08b70099f.tar.xz mpd-c22cbbf8280bb35c8fee5ae3931d3bc08b70099f.zip |
Merge branch 'v0.16.x'
Conflicts:
src/output/osx_plugin.c
src/text_input_stream.c
Diffstat (limited to '')
-rw-r--r-- | src/uri.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,13 +34,13 @@ bool uri_has_scheme(const char *uri) const char * uri_get_suffix(const char *uri) { - const char *suffix = strrchr(g_basename(uri), '.'); + const char *suffix = strrchr(uri, '.'); if (suffix == NULL) return NULL; ++suffix; - if (strchr(suffix, '/') != NULL) + if (strpbrk(suffix, "/\\") != NULL) return NULL; return suffix; |