diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2016-12-04 15:39:10 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2016-12-04 15:39:10 -0800 |
commit | 9a517b34f0f4eb546c46ad4185260f4b66773a8c (patch) | |
tree | acba9d4d05b0b495cfe628fb585001837407e371 /vnc | |
parent | 57905d71ada103ae397e441e2c14b6f64c365a69 (diff) | |
download | xrdp-proprietary-9a517b34f0f4eb546c46ad4185260f4b66773a8c.tar.gz xrdp-proprietary-9a517b34f0f4eb546c46ad4185260f4b66773a8c.zip |
vnc: code cleanup
Diffstat (limited to 'vnc')
-rw-r--r-- | vnc/vnc.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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 |