summaryrefslogtreecommitdiffstats
path: root/src/p_args_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-10 17:28:06 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-10 17:28:06 +0200
commitbea195a2e8d8e26af7511a65af4c8641cb4d1c4f (patch)
treeb3c9deb46292896ec53fa2996152293d2e92f009 /src/p_args_next.c
parentqwe (diff)
download42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.gz
42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.bz2
42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.xz
42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.zst
42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.zip
Even better parse
Diffstat (limited to 'src/p_args_next.c')
-rw-r--r--src/p_args_next.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/p_args_next.c b/src/p_args_next.c
index 6fd6b08..ea8dd81 100644
--- a/src/p_args_next.c
+++ b/src/p_args_next.c
@@ -12,6 +12,7 @@
#include <libft.h>
#include <stdint.h>
+#include <limits.h>
#include "d_define.h"
#include "p_args.h"
@@ -49,7 +50,7 @@ uint16_t
const uint16_t argc,
const size_t start[])
{
- char tmp[4096];
+ char tmp[ARG_MAX];
uint16_t i;
i = 0;