From feac60dfdf7811a033835b916378e6e7337e3665 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Tue, 24 Oct 2023 12:12:54 +0200 Subject: [PATCH] Split a line to comply with the Norm --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index da1fa1c..244e9bc 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/10/12 14:52:24 by ljiriste #+# #+# */ -/* Updated: 2023/10/13 15:36:37 by ljiriste ### ########.fr */ +/* Updated: 2023/10/24 12:10:34 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -34,6 +34,7 @@ int my_open(const char *fname) char *path; path = ft_strdup(TEST_DIR); + ft_strncat_alloc(&path, fname, ft_strlen(fname)); fd = open(path, O_RDONLY); free(path); @@ -56,7 +57,8 @@ int create_res_file(const char *fname) path = ft_strdup(RESULT_DIR); ft_strncat_alloc(&path, fname, ft_strlen(fname)); - fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); free(path); return (fd); } -- 2.30.2