From 202ff3128712ce9f11fe95a171e23ec701f53820 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 3 Mar 2020 19:52:19 +0100 Subject: Now better handling --- src/ft_get_music.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ft_get_music.c b/src/ft_get_music.c index 280a6c2..fe39361 100644 --- a/src/ft_get_music.c +++ b/src/ft_get_music.c @@ -21,8 +21,8 @@ static void uint8_t len; len = ft_strlen(mlist->music_path); - len += ft_strlen(FT_MUS_CMD); - ft_memdel((void**)&mlist->music_cmd) - 2; + len += ft_strlen(FT_MUS_CMD) - 2; + ft_memdel((void**)&mlist->music_cmd); if (!(mlist->music_cmd = (char *)malloc((len + 1) * sizeof(char)))) return ; ft_sprintf(mlist->music_cmd, FT_MUS_CMD, -- cgit v1.2.3