summaryrefslogtreecommitdiffstats
path: root/src/b_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/b_export.c')
-rw-r--r--src/b_export.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/b_export.c b/src/b_export.c
index 7aeed93..43e1c7d 100644
--- a/src/b_export.c
+++ b/src/b_export.c
@@ -31,7 +31,7 @@ static t_bool
char *ptr;
ptr = (char*)arg;
- if (ft_isalpha(ptr[0]))
+ if (ft_isalpha(ptr[0]) || ptr[0] == '_')
{
return (TRUE);
}
@@ -89,7 +89,7 @@ uint8_t
const uint64_t argc = u_builtins_get_argc((const char**)args);
char **ptr;
char *varval;
- char fmt[255];
+ char fmt[4096];
t_bool next;
uint8_t r;
@@ -112,7 +112,7 @@ uint8_t
{
next = TRUE;
ft_sprintf(fmt, "$%s", *ptr);
- varval = get_cstm_vr(fmt, msh);
+ varval = u_get_cstm_vr(fmt, msh);
if (varval != NULL)
{
ft_sprintf(fmt, "%s=%s", *ptr, varval);