From efa84bee66c4ea8372dfb1c1a2fb62fafd73cad7 Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Sun, 16 Jul 2023 18:58:14 +1100
Subject: [PATCH] fix copy of string to parse

---
 src/extra-tools/execl-envfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/extra-tools/execl-envfile.c b/src/extra-tools/execl-envfile.c
index 6555d219..53010574 100644
--- a/src/extra-tools/execl-envfile.c
+++ b/src/extra-tools/execl-envfile.c
@@ -356,7 +356,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
             unexport = 0 ;
             sa.len = 0 ;
 
-            if (!auto_stra(&sa, tmp))
+            if (!stralloc_copyb(&sa, tmp, tmplen))
                 log_die_nomem("stralloc") ;
 
             if (!environ_get_key_nclean(&sa, &pos))
-- 
GitLab