From 6dc86facd091bf78b4b76328258801672affde00 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Thu, 23 Jul 2009 14:54:04 +0000 Subject: - Fixed bug #48802 (printf() returns incorrect outputted length) --- sapi/cli/php_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index a8ab0edf71..71e0fd98ac 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -298,7 +298,7 @@ static int sapi_cli_ub_write(const char *str, uint str_length TSRMLS_DC) /* {{{ remaining -= ret; } - return str_length; + return (ptr - str); } /* }}} */ -- cgit v1.2.1