From e32a79f56d5121bbdcde45f3c2b4f1089fa328e1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 16 Sep 2020 19:56:38 +0200 Subject: Still in progress --- src/m_prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/m_prompt.c') diff --git a/src/m_prompt.c b/src/m_prompt.c index 584a98d..5278c42 100644 --- a/src/m_prompt.c +++ b/src/m_prompt.c @@ -99,7 +99,7 @@ static void return ; } m_subst_prompt_rice(var, msh); - ft_strlcpy(msh->ps[x - 1], var, ft_strlen(var) + 1); + ft_strlcpy(msh->ps[x - 1], var, 255); } void -- cgit v1.2.3