That slipped in :(

This commit is contained in:
Zeev Suraski 2000-12-13 23:40:44 +00:00
parent 63e6b0b5bf
commit 944c3b40b4

View file

@ -421,8 +421,7 @@ PHP_FUNCTION(shell_exec)
allocated_space = EXEC_INPUT_BUF; allocated_space = EXEC_INPUT_BUF;
ret = (char *) emalloc(allocated_space); ret = (char *) emalloc(allocated_space);
while (1) { while (1) {
// readbytes = fread(ret+total_readbytes,1,EXEC_INPUT_BUF,in); readbytes = fread(ret+total_readbytes,1,EXEC_INPUT_BUF,in);
readbytes = fread(ret+total_readbytes,1,5,in);
if (readbytes<=0) { if (readbytes<=0) {
break; break;
} }