From c641923d058c1f8927bb3169c5f78b0510adb72f Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 30 Nov 2004 16:45:03 +0000 Subject: fix long reads (in some events of success, no TRUE was returned) --- ChangeLog | 3 +++ libvncclient/sockets.c | 15 ++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index a91b296..9c05e45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2004-11-30 "Leiradella, Andre V Matos Da Cunha" + * libvncclient/sockets.c: return TRUE in every case of success + 2004-08-29 Karl Runge * x11vnc: yet another pointer input handling algorithm in check_user_input(), revert to previous with -old_pointer2. diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index b7cdbdd..6991616 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -162,17 +162,18 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n) out += i; n -= i; } + } #ifdef DEBUG_READ_EXACT hexdump: - { int ii; - for(ii=0;ii