Description: Fix incorrect memory operation
 The original code failed to take into account the space needed for the
 null terminator.
 .
 The patch just avoids the copy altogether, because it was not needed.
Author: Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
Origin: upstream
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/1054417
Forwarded: not-needed
Applied-Upstream: 1.0
Last-Update: 2023-10-23

--- weborf-0.19.orig/cgi.c
+++ weborf-0.19/cgi.c
@@ -228,8 +228,7 @@ static inline void cgi_execute_child(con
     environ = NULL; //Clear env vars
 
     if (strlen(executor) == 0) {
-        executor = malloc(connection_prop->strfile_len + 1);
-        strncpy(executor, connection_prop->strfile, connection_prop->strfile_len);
+        executor = connection_prop->strfile;
     }
 
     cgi_set_http_env_vars(connection_prop->http_param);
