Merge pull request #2161 from bmiklautz/fix/windows_build

Fix build on windows
This commit is contained in:
Norbert Federa 2014-10-22 12:25:43 +02:00
commit afe87d95e7

View 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) {