summaryrefslogtreecommitdiffstats
path: root/src/c_utils.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-09-16 16:00:42 +0200
committersalad <fmoenne-@student.le-101.fr>2020-09-16 16:00:42 +0200
commit448c69c83f4605f4ec3164c59841fb3352227b2c (patch)
tree5511c32d9faeef60d2460f5b64df299a40b6dea5 /src/c_utils.c
parentreste 3 leaks + multiline (diff)
download42-minishell-448c69c83f4605f4ec3164c59841fb3352227b2c.tar.gz
42-minishell-448c69c83f4605f4ec3164c59841fb3352227b2c.tar.bz2
42-minishell-448c69c83f4605f4ec3164c59841fb3352227b2c.tar.xz
42-minishell-448c69c83f4605f4ec3164c59841fb3352227b2c.tar.zst
42-minishell-448c69c83f4605f4ec3164c59841fb3352227b2c.zip
heh
Diffstat (limited to '')
-rw-r--r--src/c_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c
index b39e580..b50280d 100644
--- a/src/c_utils.c
+++ b/src/c_utils.c
@@ -172,13 +172,13 @@ int16_t
i = 0;
tputs(tgetstr("cr", NULL), 1, ft_putchar);
+ len = ft_strlen(line);
while (i < ft_strlen(msh->ps[0]))
{
tputs(tgetstr("nd", NULL), 1, ft_putchar);
i++;
}
ret = ft_printf("%s", line) + ft_strlen(msh->ps[0]);
- len = ft_strlen(line);
if (tcaps->cpos != len)
while (--len > tcaps->cpos)
tputs(tgetstr("le", NULL), 1, ft_putchar);