cvs: php-src /ext/standard proc_open.c

From: Date: Mon, 20 Feb 2006 09:38:47 +0000
Subject: cvs: php-src /ext/standard proc_open.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36939@lists.php.net to get a copy of this message
dmitry Mon Feb 20 09:38:47 2006 UTC Modified files: /php-src/ext/standard proc_open.c Log: Fixed memory corruption http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/proc_open.c?r1=1.39&r2=1.40&diff_format=u Index: php-src/ext/standard/proc_open.c diff -u php-src/ext/standard/proc_open.c:1.39 php-src/ext/standard/proc_open.c:1.40 --- php-src/ext/standard/proc_open.c:1.39 Sun Feb 19 18:19:33 2006 +++ php-src/ext/standard/proc_open.c Mon Feb 20 09:38:47 2006 @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: proc_open.c,v 1.39 2006/02/19 18:19:33 iliaa Exp $ */ +/* $Id: proc_open.c,v 1.40 2006/02/20 09:38:47 dmitry Exp $ */ #if 0 && (defined(__linux__) || defined(sun) || defined(__IRIX__)) # define _BSD_SOURCE /* linux wants this when XOPEN mode is on */ @@ -809,7 +809,7 @@ proc = (struct php_process_handle*)pemalloc(sizeof(struct php_process_handle), is_persistent); proc->is_persistent = is_persistent; - proc->command = command; + proc->command = pestrdup(command, is_persistent); proc->npipes = ndesc; proc->child = child; proc->env = env;

« previous php.cvs (#36939) next »