map

minimalist audio player
git clone https://git.porkepik.fr/map
Log | Files | Refs | README | LICENSE

commit 13dda7ed0dd015b972dbebebbf2ef8c8f43db5aa
parent ec46792c10ac604469c814dea6935603b0de74a1
Author: Thomas Philippe <dev@porkepik.fr>
Date:   Fri, 13 Mar 2020 16:52:28 +0100

remove real_path, use current directory

Diffstat:
Mmap.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/map.c b/map.c @@ -108,18 +108,14 @@ print_playlist(struct track **tracks, int start_index) static void print_info(const char *curdir, struct track track) { - char *real_path = realpath(curdir, NULL); - set_cursor(rows - 3, 1); - write_term(" Directory: %s\x1b[K", real_path); + write_term(" Directory: %s\x1b[K", curdir); set_cursor(rows - 2, 1); write_term(" Playing: %s\x1b[K", track.name); set_cursor(rows - 1, 32); write_term("Format: %s", track.format); - - free(real_path); } static void