Package: libfakechroot
Version: 2.16-1
Tags: patch
Dear Maintainer,
if I haven't missed something, would the following patch help
to accomodate a terminating '\0' ?
Thanks in advance for your comments and/or corrections.
Regards,
JH Chatenet
--- a/src/execve.c 2011-12-11 13:05:34.000000000 +0100
+++ b/src/execve.c 2013-08-09 12:52:13.000000000 +0200
@@ -163,7 +163,7 @@
}
if (do_cmd_subst) {
- newenvp[newenvppos] = malloc(strlen("FAKECHROOT_CMD_ORIG=") +
strlen(filename));
+ newenvp[newenvppos] = malloc(strlen("FAKECHROOT_CMD_ORIG=") +
strlen(filename) + 1);
strcpy(newenvp[newenvppos], "FAKECHROOT_CMD_ORIG=");
strcat(newenvp[newenvppos], filename);
newenvppos++;
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]