From 1bbffeef8e928830f424ed54e2cb3b1642a9de7b Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Mon, 30 Jul 2012 13:54:34 +0200 Subject: [PATCH] wret instead of ret var --- web/spush/brisk-spush.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/spush/brisk-spush.php b/web/spush/brisk-spush.php index d39ba04..788de8c 100755 --- a/web/spush/brisk-spush.php +++ b/web/spush/brisk-spush.php @@ -268,8 +268,8 @@ function main() $wret = @fwrite($new_socket, headers_render($header_out).$content); if ($wret < $content_l) { - printf("TROUBLES WITH FWRITE: %d\n", $ret); - $user->rd_cache_set(mb_substr($content, $ret, $content_l - $ret, "ASCII")); + printf("TROUBLES WITH FWRITE: %d\n", $wret); + $user->rd_cache_set(mb_substr($content, $wret, $content_l - $wret, "ASCII")); } else { $user->rd_cache_set(""); -- 2.17.1