summaryrefslogtreecommitdiffstats
path: root/src/m_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_prompt.c')
-rw-r--r--src/m_prompt.c2
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