summaryrefslogtreecommitdiffstats
path: root/libvncclient/sockets.c
diff options
context:
space:
mode:
authordscho <dscho>2004-11-30 16:45:03 +0000
committerdscho <dscho>2004-11-30 16:45:03 +0000
commitc641923d058c1f8927bb3169c5f78b0510adb72f (patch)
treeaf8b9afffe0c6e170d7a580d7132b5fca2e4c14e /libvncclient/sockets.c
parent9a8a28c117f9185876e51aeefdb822532d5c71fa (diff)
downloadlibtdevnc-c641923d058c1f8927bb3169c5f78b0510adb72f.tar.gz
libtdevnc-c641923d058c1f8927bb3169c5f78b0510adb72f.zip
fix long reads (in some events of success, no TRUE was returned)
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r--libvncclient/sockets.c15
1 files changed, 8 insertions, 7 deletions
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<nn;ii++)
- fprintf(stderr,"%02x ",(unsigned char)oout[ii]);
- fprintf(stderr,"\n");
- }
-#endif
- return TRUE;
+ { int ii;
+ for(ii=0;ii<nn;ii++)
+ fprintf(stderr,"%02x ",(unsigned char)oout[ii]);
+ fprintf(stderr,"\n");
}
+#endif
+
+ return TRUE;
}