summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2016-06-05 18:19:47 +0200
committerChristian Beier <dontmind@freeshell.org>2016-06-05 18:19:47 +0200
commit6f4f31fe93a790e0b310eddcad9e5fc4f3a4ccb2 (patch)
tree08f81e9290bc9aa2b76679283caaf77433286c40 /common
parent962e1082e835b95abc448cacba2c9ea5cdd200c1 (diff)
parent684ebe02a202da178f8ae60e601f628ce801c9f9 (diff)
downloadlibtdevnc-6f4f31fe93a790e0b310eddcad9e5fc4f3a4ccb2.tar.gz
libtdevnc-6f4f31fe93a790e0b310eddcad9e5fc4f3a4ccb2.zip
Merge pull request #84 from plettix/master
fix for issue 81
Diffstat (limited to 'common')
-rw-r--r--common/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/md5.c b/common/md5.c
index e185bc1..c3e3fd7 100644
--- a/common/md5.c
+++ b/common/md5.c
@@ -46,7 +46,7 @@
#ifdef WORDS_BIGENDIAN
# define SWAP(n) \
- (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
+ ((((n) & 0x00ff) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | (((n) >> 24) & 0x00ff))
#else
# define SWAP(n) (n)
#endif