From dede3aea22640d9b036f358b228aa611da6bc0d9 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sat, 28 Jan 2017 17:59:52 +0100 Subject: Fix LibVNCClient compilation with MSVC 2014 --- common/vncauth.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/vncauth.c') diff --git a/common/vncauth.c b/common/vncauth.c index 0b20f53..2a5d96f 100644 --- a/common/vncauth.c +++ b/common/vncauth.c @@ -31,7 +31,9 @@ #endif #include #include +#ifdef LIBVNCSERVER_HAVE_UNISTD_H #include +#endif #include #include "d3des.h" -- cgit v1.2.1 From 716bd27235fe6462271e799a758f2682fa4cb1de Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 28 Nov 2018 21:08:15 +0100 Subject: Fix -Wmisleading-indentation warnings --- common/vncauth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/vncauth.c') diff --git a/common/vncauth.c b/common/vncauth.c index 2a5d96f..81bb10b 100644 --- a/common/vncauth.c +++ b/common/vncauth.c @@ -207,8 +207,9 @@ rfbEncryptBytes2(unsigned char *where, const int length, unsigned char *key) { where[i] ^= key[i]; rfbDes(where, where); for (i = 8; i < length; i += 8) { - for (j = 0; j < 8; j++) + for (j = 0; j < 8; j++) { where[i + j] ^= where[i + j - 8]; - rfbDes(where + i, where + i); + } + rfbDes(where + i, where + i); } } -- cgit v1.2.1