diff options
author | Christian Beier <dontmind@freeshell.org> | 2012-05-09 17:31:59 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2012-05-09 17:31:59 +0200 |
commit | 2a97ab8679157c629e67b966d16ee86a0b6c2d90 (patch) | |
tree | a7143859bc338c4405a2fa5fd9c48be248760226 /libvncclient/sockets.c | |
parent | ab74d36dcde455308e42a4117e03ee89b8800886 (diff) | |
download | libtdevnc-2a97ab8679157c629e67b966d16ee86a0b6c2d90.tar.gz libtdevnc-2a97ab8679157c629e67b966d16ee86a0b6c2d90.zip |
Fix some compiler warnings that hinted some no too unimportant errors.
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r-- | libvncclient/sockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index 76441f9..6c47491 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -111,7 +111,7 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n) rec->tv=tv; } - return (fread(out,1,n,rec->file)<0?FALSE:TRUE); + return (fread(out,1,n,rec->file) != n ? FALSE : TRUE); } if (n <= client->buffered) { |