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 /vncterm/LinuxVNC.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 'vncterm/LinuxVNC.c')
| -rw-r--r-- | vncterm/LinuxVNC.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/vncterm/LinuxVNC.c b/vncterm/LinuxVNC.c index 9b58954..99e6b1d 100644 --- a/vncterm/LinuxVNC.c +++ b/vncterm/LinuxVNC.c @@ -152,7 +152,10 @@ int main(int argc,char **argv)  #ifdef USE_OLD_VCS        fread(buffer,width,height,tty_file);  #else -      fread(buffer,width*height*2+4,1,tty_file); +      if(fread(buffer,width*height*2+4,1,tty_file) != 1) { +	rfbErr("Error reading framebuffer\n"); +	exit(1); +      }        vcHideCursor(console);  #endif        fclose(tty_file); | 
