Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
Updated audiofile search to unsure kill possibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilian BOTREL committed Apr 1, 2019
1 parent 4cea23e commit 223ad4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srcs/events/psycho_effect.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: kibotrel <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/18 12:01:32 by kibotrel #+# #+# */
/* Updated: 2019/04/01 16:20:25 by kibotrel ### ########.fr */
/* Updated: 2019/04/01 17:59:57 by kibotrel ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -22,9 +22,9 @@ static void check_sound_availability(char *af, t_env *env)
{
int fd;
char *line;
char check[128];
char check[256];

sprintf(check, "find -f ./sounds | grep %s | wc -l | cut -c 8- > tst", af);
sprintf(check, "find ./%s 2> /dev/null | wc -l | cut -c 8- > tst", af);
system(check);
fd = open("tst", O_RDONLY);
ft_get_next_line(fd, &line);
Expand Down

0 comments on commit 223ad4b

Please sign in to comment.