diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-24 14:29:23 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-24 14:29:23 +0000 |
commit | ecaa2131695342d84a3cc3b472032a7805e34a8b (patch) | |
tree | 55f6bb6293b84469e28c8b421083d5fe9d0904f8 /screen_file.c | |
parent | f77e63448ee5afb7ddf3f3798f40a4c2a2d6b2a5 (diff) | |
download | mpd-ecaa2131695342d84a3cc3b472032a7805e34a8b.tar.gz mpd-ecaa2131695342d84a3cc3b472032a7805e34a8b.tar.xz mpd-ecaa2131695342d84a3cc3b472032a7805e34a8b.zip |
Display directories in a new style, [dir]
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@453 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen_file.c')
-rw-r--r-- | screen_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screen_file.c b/screen_file.c index d503628cb..ba0dbd3e1 100644 --- a/screen_file.c +++ b/screen_file.c @@ -42,7 +42,7 @@ list_callback(int index, int *highlight, void *data) mpd_Directory *dir = entity->info.directory; char *dirname = utf8_to_locale(basename(dir->path)); - strncpy(buf, dirname, BUFSIZE); + snprintf(buf, BUFSIZE, "[%s]", dirname); free(dirname); return buf; } @@ -336,7 +336,7 @@ file_cmd(screen_t *screen, mpd_client_t *c, command_t cmd) free(screen->findbuf); screen->findbuf=NULL; } - /* fall throw... */ + /* continue... */ case CMD_LIST_FIND_NEXT: if( !screen->findbuf ) screen->findbuf=screen_readln(screen->status_window.w, "/"); |