summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2014-09-02 16:49:04 +0200
committerJohannes Schindelin <johannes.schindelin@gmx.de>2014-09-02 16:53:05 +0200
commit8d2db0486dcc167f1b02d4454ebf4624ce03e1de (patch)
tree431020c5a2fe2d0371bebc19de8d778e6a63fcb5
parent70783a4d60086f1a706bbbd8dedbc3b31a4a19a0 (diff)
downloadlibvncserver-8d2db0486dcc167f1b02d4454ebf4624ce03e1de.zip
libvncserver-8d2db0486dcc167f1b02d4454ebf4624ce03e1de.tar.gz
Fix tv_usec calculation
This bug was introduced in the MSVC patches. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-rw-r--r--libvncclient/tls_openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncclient/tls_openssl.c b/libvncclient/tls_openssl.c
index 669913d..00d031d 100644
--- a/libvncclient/tls_openssl.c
+++ b/libvncclient/tls_openssl.c
@@ -222,7 +222,7 @@ static int sock_read_ready(SSL *ssl, uint32_t ms)
FD_SET(SSL_get_fd(ssl), &fds);
tv.tv_sec = ms / 1000;
- tv.tv_usec = (ms % 1000) * ms;
+ tv.tv_usec = (ms % 1000) * 1000;
r = select (SSL_get_fd(ssl) + 1, &fds, NULL, NULL, &tv);
OpenPOWER on IntegriCloud