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:
parent
2e1dca75f8
commit
70d8c071c1
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user