diff options
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); |