summaryrefslogtreecommitdiffstats
path: root/src/m_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/m_prompt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/m_prompt.c b/src/m_prompt.c
index ad3c957..1ea8d70 100644
--- a/src/m_prompt.c
+++ b/src/m_prompt.c
@@ -54,7 +54,8 @@ static char
while (tmp[j] != '/' && j != 0)
j--;
j++;
- ft_memmove(tmp, tmp + j, (ft_strlen(tmp) - j) + 1);
+ (void)ft_memmove(tmp, tmp + j,
+ ((ft_strlen(tmp) - j) + 1) * sizeof(char));
}
var = ft_strsubst(var, "\\W", tmp);
ft_memdel((void*)&tmp);