Commit c641923d authored by dscho's avatar dscho

fix long reads (in some events of success, no TRUE was returned)

parent 9a8a28c1
2004-11-30 "Leiradella, Andre V Matos Da Cunha" <ANDRE.LEIRADELLA@bra.xerox.com>
* libvncclient/sockets.c: return TRUE in every case of success
2004-08-29 Karl Runge <runge@karlrunge.com> 2004-08-29 Karl Runge <runge@karlrunge.com>
* x11vnc: yet another pointer input handling algorithm in * x11vnc: yet another pointer input handling algorithm in
check_user_input(), revert to previous with -old_pointer2. check_user_input(), revert to previous with -old_pointer2.
......
...@@ -162,17 +162,18 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n) ...@@ -162,17 +162,18 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
out += i; out += i;
n -= i; n -= i;
} }
}
#ifdef DEBUG_READ_EXACT #ifdef DEBUG_READ_EXACT
hexdump: hexdump:
{ int ii; { int ii;
for(ii=0;ii<nn;ii++) for(ii=0;ii<nn;ii++)
fprintf(stderr,"%02x ",(unsigned char)oout[ii]); fprintf(stderr,"%02x ",(unsigned char)oout[ii]);
fprintf(stderr,"\n"); fprintf(stderr,"\n");
}
#endif
return TRUE;
} }
#endif
return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment