diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-16 19:56:38 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-16 19:56:38 +0200 |
commit | e32a79f56d5121bbdcde45f3c2b4f1089fa328e1 (patch) | |
tree | 1a29db13a9e28a424a08e1751625ceb9d55b380c /src/m_prompt.c | |
parent | In progress (diff) | |
download | 42-minishell-e32a79f56d5121bbdcde45f3c2b4f1089fa328e1.tar.gz 42-minishell-e32a79f56d5121bbdcde45f3c2b4f1089fa328e1.tar.bz2 42-minishell-e32a79f56d5121bbdcde45f3c2b4f1089fa328e1.tar.xz 42-minishell-e32a79f56d5121bbdcde45f3c2b4f1089fa328e1.tar.zst 42-minishell-e32a79f56d5121bbdcde45f3c2b4f1089fa328e1.zip |
Still in progress
Diffstat (limited to '')
-rw-r--r-- | src/m_prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |