path: replaced mpd_basename() with g_path_get_basename()
GLib's g_path_get_basename() is much more reliable than mpd_basename(). The latter could be tricked into an assertion failure.
This commit is contained in:
@@ -83,12 +83,4 @@ void pathcpy_trunc(char *dest, const char *src);
|
||||
*/
|
||||
void utf8_to_fs_playlist_path(char *path_max_tmp, const char *utf8path);
|
||||
|
||||
/*
|
||||
* Like basename(3) but with predictable semantics independent
|
||||
* of C library or build options used. This is also much more strict
|
||||
* and does not account for trailing slashes (mpd should never deal with
|
||||
* trailing slashes on internal functions).
|
||||
*/
|
||||
const char *mpd_basename(const char *path);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user