summaryrefslogtreecommitdiffstats
path: root/src/m_prompt.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 17:03:49 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 17:03:49 +0200
commit247023e3fac41c99b5580d69262837429fb2bfed (patch)
treef8cf9e42cffa38b8b0062512fc24bb4404386c42 /src/m_prompt.c
parentNot quite done yet (diff)
download42-minishell-247023e3fac41c99b5580d69262837429fb2bfed.tar.gz
42-minishell-247023e3fac41c99b5580d69262837429fb2bfed.tar.bz2
42-minishell-247023e3fac41c99b5580d69262837429fb2bfed.tar.xz
42-minishell-247023e3fac41c99b5580d69262837429fb2bfed.tar.zst
42-minishell-247023e3fac41c99b5580d69262837429fb2bfed.zip
Fuck shell
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);