Add missing format string to snprintf's.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1703 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Henrik Andersson 2013-03-22 12:38:19 +00:00
parent 2e1dca75f8
commit 70d8c071c1

View File

@ -1559,7 +1559,7 @@ load_licence(unsigned char **data)
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, sizeof(hash), ho, sizeof(ho));
@ -1607,7 +1607,7 @@ save_licence(unsigned char *data, int length)
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, sizeof(hash), ho, sizeof(ho));