--- rdesktop-1.7.1/rdesktop.c 2011-11-25 11:03:03.000000000 +0100 +++ rdesktop-1.7.1/rdesktop.c.fix 2012-08-26 20:46:11.000000000 +0200 @@ -1574,7 +1574,7 @@ if (home == NULL) return -1; - snprintf((char*)hi, 16, g_hostname); + snprintf((char*)hi, 16, "%s", g_hostname); sec_hash_sha1_16(ho, hi, g_static_rdesktop_salt_16); sec_hash_to_string(hash, 40, ho, 22); @@ -1624,7 +1624,7 @@ return; } - snprintf((char*)hi,16,g_hostname); + snprintf((char*)hi,16,"%s",g_hostname); sec_hash_sha1_16(ho, hi, g_static_rdesktop_salt_16); sec_hash_to_string(hash, 40, ho, 20);