[MSTSC] Addendum to r73368. Peter, please review. CORE-9321
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 24 Nov 2016 11:16:56 +0000 (11:16 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 24 Nov 2016 11:16:56 +0000 (11:16 +0000)
svn path=/trunk/; revision=73370

reactos/base/applications/mstsc/tcp.c

index ceb0170..037072a 100644 (file)
@@ -593,7 +593,7 @@ ssl_handshake(RD_BOOL compat_mode)
                        read_buf_size += 1024;
                }
 
-               size = recv(g_sock, read_buf+in_bufs[0].cbBuffer, read_buf_size-in_bufs[0].cbBuffer, 0);
+               size = recv(g_sock, (char *)read_buf + in_bufs[0].cbBuffer, read_buf_size - in_bufs[0].cbBuffer, 0);
                if (size < 1)
                {
                        error("recv failed: %d (%s)\n", size, TCP_STRERROR);