diff --git a/src/screen_browser.c b/src/screen_browser.c
index 1350a56b4b7c134460be439c401cde6dc28c83be..da0dc897c088093376c289f856a3399fe065da56 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
#include "i18n.h"
#include "options.h"
#include "charset.h"
-#include "support.h"
#include "strfsong.h"
#include "screen_utils.h"
#include "gcc.h"
if( entity->type==MPD_INFO_ENTITY_TYPE_DIRECTORY ) {
mpd_Directory *dir = entity->info.directory;
- char *directory = utf8_to_locale(basename(dir->path));
+ char *directory = utf8_to_locale(g_basename(dir->path));
g_snprintf(buf, BUFSIZE, "[%s]", directory);
g_free(directory);
return buf;
} else if( entity->type==MPD_INFO_ENTITY_TYPE_PLAYLISTFILE ) {
mpd_PlaylistFile *plf = entity->info.playlistFile;
- char *filename = utf8_to_locale(basename(plf->path));
+ char *filename = utf8_to_locale(g_basename(plf->path));
g_snprintf(buf, BUFSIZE, playlist_format, filename);
g_free(filename);
char *filename = utf8_to_locale(plf->path);
if (mpdclient_cmd_load_playlist_utf8(c, plf->path) == 0)
- screen_status_printf(_("Loading playlist %s..."), basename(filename));
+ screen_status_printf(_("Loading playlist %s..."),
+ g_basename(filename));
g_free(filename);
return 0;
}