From 2cc6f50e5b04b903ca97d8a5479c95ca72b52547 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 26 Apr 2020 20:07:03 +0200 Subject: substsubtsubst --- src/ft_u_vars.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_u_vars.c') diff --git a/src/ft_u_vars.c b/src/ft_u_vars.c index 80288e6..619e83d 100644 --- a/src/ft_u_vars.c +++ b/src/ft_u_vars.c @@ -35,7 +35,8 @@ static char } ft_memcpy((char*)rvarname, (const char*)varname + 1, ft_strlen(varname + 1)); - ft_strlcpy(rvarname + ft_strlen(varname + 1), "=", 2); + *(rvarname + ft_strlen(varname + 1)) = '='; + *(rvarname + ft_strlen(varname + 1) + 1) = '\0'; return (rvarname); } -- cgit v1.2.3