From: Max Kellermann Date: Sat, 4 Oct 2008 10:23:29 +0000 (+0200) Subject: use g_basename() instead of basename() X-Git-Tag: v0.12_alpha1~70 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=316adb83cf48608b0f8aa2652474aa2ed5db3169;p=ncmpc.git use g_basename() instead of basename() Another occurence of the non-portable basename() wasn't converted to glib yet. --- diff --git a/src/screen_utils.c b/src/screen_utils.c index 5134756..e42de0b 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -234,7 +234,7 @@ screen_display_completion_list(GList *list) wclrtoeol(w); if (item) { gchar *tmp = g_strdup(item->data); - waddstr(w, basename(tmp)); + waddstr(w, g_basename(tmp)); g_free(tmp); } }