summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-12-04 15:39:10 -0800
committerJay Sorg <jay.sorg@gmail.com>2016-12-04 15:39:10 -0800
commit9a517b34f0f4eb546c46ad4185260f4b66773a8c (patch)
treeacba9d4d05b0b495cfe628fb585001837407e371 /vnc
parent57905d71ada103ae397e441e2c14b6f64c365a69 (diff)
downloadxrdp-proprietary-9a517b34f0f4eb546c46ad4185260f4b66773a8c.tar.gz
xrdp-proprietary-9a517b34f0f4eb546c46ad4185260f4b66773a8c.zip
vnc: code cleanup
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 040a67c4..8fe3a8bc 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -1097,15 +1097,7 @@ lib_mod_connect(struct vnc *v)
if (v->got_guid)
{
char guid_str[64];
- char *pguid_str;
- int index;
- pguid_str = guid_str;
- for (index = 0; index < 16; index++)
- {
- g_snprintf(pguid_str, 4, "%2.2x", v->guid[index]);
- pguid_str += 2;
- }
- guid_str[32] = 0;
+ g_bytes_to_hexstr(v->guid, 16, guid_str, 64);
rfbHashEncryptBytes(s->data, guid_str);
}
else