Fix build on windows
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Wed, 22 Oct 2014 10:16:40 +0000 (12:16 +0200)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Wed, 22 Oct 2014 10:16:40 +0000 (12:16 +0200)
Problem was introduces by a non pull request push for ipv6 support

libfreerdp/core/tcp.c

index 24e3933..0ad632f 100644 (file)
@@ -558,7 +558,7 @@ BOOL tcp_connect(rdpTcp* tcp, const char* hostname, int port, int timeout)
                 * FIXME: the following is a nasty workaround. Find a cleaner way:
                 * Either set port manually afterwards or get it passed as string?
                 */
-               snprintf(port_str, 11, "%u", port);
+               sprintf_s(port_str, 11, "%u", port);
 
                status = getaddrinfo(hostname, port_str, &hints, &result);
                if (status) {