aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristopher Uhlig2024-08-05 21:47:31 +0200
committerChristopher Uhlig2024-08-05 21:47:31 +0200
commit0539428e0b7e17713904d4dae33e3150b74e964f (patch)
treec7a4c5632a40eb37772cbb40cd4393bf2fb9fe7f /lib
parent06c41263920edf9f8a39ba6e7a44143dfa7515b2 (diff)
downloadminishell-0539428e0b7e17713904d4dae33e3150b74e964f.tar.gz
minishell-0539428e0b7e17713904d4dae33e3150b74e964f.zip
tried without manz changes to improve it pls test it also doueble and single quote again
Diffstat (limited to 'lib')
-rw-r--r--lib/libft/ft_strncpy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libft/ft_strncpy.c b/lib/libft/ft_strncpy.c
index 30a9d3d..9d772cb 100644
--- a/lib/libft/ft_strncpy.c
+++ b/lib/libft/ft_strncpy.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/05 13:41:47 by chuhlig #+# #+# */
-/* Updated: 2024/08/05 13:42:00 by chuhlig ### ########.fr */
+/* Updated: 2024/08/05 14:22:26 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,5 +17,6 @@ char *ft_strncpy(char *s1, char *s2, int n)
i = -1;
while (++i < n && s2[i])
s1[i] = s2[i];
+ // s1[i] = '\0';
return (s1);
-} \ No newline at end of file
+}