X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;fp=rdpsrv.c;h=91989872cf530955bd5cd274a21f858e9d09818a;hp=0251a2a24b8edbe6b3dd8ec22946ff06441a283b;hb=f0e31781e50a45d6de4220ae14143d775f2ae43b;hpb=c118f6e75e8c6e2924641cbc4c20179ab13ec11d diff --git a/rdpsrv.c b/rdpsrv.c index 0251a2a..9198987 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -389,7 +389,7 @@ int serve_client() error("short read on vnc_sock\n"); if (read(vnc_sock, buf, 4) != 4) error("short read on vnc_sock\n"); - if (read(vnc_sock, (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3], 4) != 4) + if (read(vnc_sock, buf, (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]) != 4) error("short read on vnc_sock\n"); default: