]> git.sesse.net Git - rdpsrv/commitdiff
Send encodings _correctly_ this time...
authorSteinar H. Gunderson <sesse@samfundet.no>
Fri, 4 Feb 2005 16:14:44 +0000 (16:14 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Fri, 4 Feb 2005 16:14:44 +0000 (16:14 +0000)
rdpsrv.c

index b8bc56aa61001b44ecaf424ab9fb0d45eb69458a..a6064be6cf628188eae2bf608c7298aa1ae23f27 100644 (file)
--- a/rdpsrv.c
+++ b/rdpsrv.c
@@ -149,8 +149,11 @@ int vnc_init()
        buf[2] = 0; // number of encodings
        buf[3] = 1;
        buf[4] = 0; // raw encoding
+       buf[5] = 0; 
+       buf[6] = 0;
+       buf[7] = 0;
 
-       write(vnc_sock, buf, 5);
+       write(vnc_sock, buf, 8);
        
        // request the entire framebuffer
        buf[0] = 3; // message type
@@ -215,7 +218,10 @@ int serve_client()
 
                // activity on VNC socket?
                if (FD_ISSET(vnc_sock, &readfs)) {
-                       char buf[256];
+                       unsigned char buf[256];
+
+                       printf("Activity on VNC socket!\n");
+                       
                        read(vnc_sock, buf, 1);
                        switch (buf[0]) {
                        case 0: