summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f77e634)
raw | patch | inline | side by side (parent: f77e634)
| author | Kalle Wallin <kaw@linux.se> | |
| Wed, 24 Mar 2004 14:29:23 +0000 (14:29 +0000) | ||
| committer | Kalle Wallin <kaw@linux.se> | |
| Wed, 24 Mar 2004 14:29:23 +0000 (14:29 +0000) | 
| screen_file.c | patch | blob | history | 
diff --git a/screen_file.c b/screen_file.c
index d503628cbe62dc0fae02413eaef17270e1fc29b3..ba0dbd3e1c948b280d70cbe2bd9b000085b05a1d 100644 (file)
--- a/screen_file.c
+++ b/screen_file.c
       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;
     }
          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, "/");
![[tokkee]](http://tokkee.org/images/avatar.png)
