diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 21:22:42 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 21:22:42 +0200 |
commit | 064c1e22c83f24c112bc2e3e3ce4427f8ff9e4c7 (patch) | |
tree | 0f5b65aa3e55c28cd1862b4817ad5f6ed294d2b9 | |
parent | Fuck this (diff) | |
download | 42-minishell-064c1e22c83f24c112bc2e3e3ce4427f8ff9e4c7.tar.gz 42-minishell-064c1e22c83f24c112bc2e3e3ce4427f8ff9e4c7.tar.bz2 42-minishell-064c1e22c83f24c112bc2e3e3ce4427f8ff9e4c7.tar.xz 42-minishell-064c1e22c83f24c112bc2e3e3ce4427f8ff9e4c7.tar.zst 42-minishell-064c1e22c83f24c112bc2e3e3ce4427f8ff9e4c7.zip |
Format
-rw-r--r-- | src/p_lblock_next.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c index 10c4d84..0a982a5 100644 --- a/src/p_lblock_next.c +++ b/src/p_lblock_next.c @@ -62,7 +62,9 @@ static void ft_strlcpy(tmp, ptr + i, varlen + 1 - i); u_get_var_value(varval, tmp, ARG_MAX, msh); p_double_them_bs(varval); - (void)ft_memmove(ptr + (i + ft_strlen(tmp)), ptr + varlen, (ft_strlen(ptr + varlen) + 1) * sizeof(char)); + (void)ft_memmove(ptr + (i + ft_strlen(tmp)), + ptr + varlen, + (ft_strlen(ptr + varlen) + 1) * sizeof(char)); (void)ft_memmove(word + i, varval, ft_strlen(varval) * sizeof(char)); *(p) = word + (i + ft_strlen(varval) - 1); } |