summaryrefslogtreecommitdiffstats
path: root/src/p_lblock_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 15:05:31 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 15:05:31 +0200
commit6f756ee6112c723cfe0f8ece2d530b249aa47e00 (patch)
treed855b1f53369b382c6cb204a3241561e48d99e5d /src/p_lblock_next.c
parentLOT to fix (diff)
download42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.gz
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.bz2
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.xz
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.zst
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.zip
Fix
Diffstat (limited to '')
-rw-r--r--src/p_lblock_next.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c
index 21cd4a7..e342f4a 100644
--- a/src/p_lblock_next.c
+++ b/src/p_lblock_next.c
@@ -61,7 +61,7 @@ static char
ft_strlcpy(tmp, ptr + i, varlen + 1 - i);
u_get_var_value(varval, tmp, ARG_MAX, msh);
p_double_them_bs(varval);
- ft_strlcpy(tmp, ptr + varlen, varlen);
+ ft_strlcpy(tmp, ptr + varlen, varlen + 1);
if ((word = ft_nrealloc(word, i, i + ft_strlen(varval) +
ft_strlen(tmp) + 1)) == NULL)
return (NULL);
@@ -150,9 +150,9 @@ static char
int64_t i,
t_msh *msh)
{
+ char **rewords;
int64_t j;
int64_t k;
- char **rewords;
j = 0;
if (reg == TRUE)