cvs: /php4/ext/standard exec.c

From: Date: Mon, 06 Mar 2000 15:32:36 +0000
Subject: cvs: /php4/ext/standard exec.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-11583@lists.php.net to get a copy of this message
hholzgra Mon Mar 6 07:32:36 2000 EDT Modified files: /php4/ext/standard exec.c Log: off-by-one error (bug id #3741) fixed Index: php4/ext/standard/exec.c diff -u php4/ext/standard/exec.c:1.29 php4/ext/standard/exec.c:1.30 --- php4/ext/standard/exec.c:1.29 Thu Feb 24 00:07:29 2000 +++ php4/ext/standard/exec.c Mon Mar 6 07:32:05 2000 @@ -15,7 +15,7 @@ | Author: Rasmus Lerdorf | +----------------------------------------------------------------------+ */ -/* $Id: exec.c,v 1.29 2000/02/24 08:07:29 eschmid Exp $ */ +/* $Id: exec.c,v 1.30 2000/03/06 15:32:05 hholzgra Exp $ */ #include <stdio.h> #include "php.h" @@ -173,7 +173,7 @@ tmp = php_addslashes(buf, 0, &len, 0); RETVAL_STRINGL(tmp,len,0); } else - RETVAL_STRINGL(buf,l,1); + RETVAL_STRINGL(buf,l+1,1); } else { int b, i; @@ -196,6 +196,7 @@ } /* {{{ proto int exec(string command [, array output [, int return_value]]) + Execute an external program */ PHP_FUNCTION(exec) { @@ -229,6 +230,7 @@ break; } } + /* }}} */ /* {{{ proto int system(string command [, int return_value])

« previous php.version4 (#11583) next »