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: