Code

use g_basename() instead of basename()
authorMax Kellermann <max@duempel.org>
Sat, 4 Oct 2008 10:23:29 +0000 (12:23 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 4 Oct 2008 10:23:29 +0000 (12:23 +0200)
Another occurence of the non-portable basename() wasn't converted to
glib yet.

src/screen_utils.c

index 5134756163f4686865e96783d0a86844f9e3fbda..e42de0b175a2bdfa22cb7262487bdc03318fb652 100644 (file)
@@ -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);
                }
        }