summaryrefslogtreecommitdiffstats
path: root/libvncclient/sockets.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2012-05-09 17:31:59 +0200
committerChristian Beier <dontmind@freeshell.org>2012-05-09 17:31:59 +0200
commit2a97ab8679157c629e67b966d16ee86a0b6c2d90 (patch)
treea7143859bc338c4405a2fa5fd9c48be248760226 /libvncclient/sockets.c
parentab74d36dcde455308e42a4117e03ee89b8800886 (diff)
downloadlibtdevnc-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.c2
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) {