mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-21 20:28:52 +00:00
TPM2: fix g_memdup
deprecated warning
This commit is contained in:
parent
2f00bf3a3f
commit
bf0ddf7ff3
@ -407,7 +407,7 @@ egg_tpm2_decrypt_master_password(EggTpm2Context *context,
|
||||
data = g_variant_get_fixed_array(out_private_variant,
|
||||
&count,
|
||||
sizeof(guint8));
|
||||
guint8 *marshaled_out_private = g_memdup(data, count);
|
||||
guint8 *marshaled_out_private = g_memdup2(data, count);
|
||||
count = 0;
|
||||
|
||||
TPM2B_PRIVATE out_private = {
|
||||
@ -434,7 +434,7 @@ egg_tpm2_decrypt_master_password(EggTpm2Context *context,
|
||||
data = g_variant_get_fixed_array(out_public_variant,
|
||||
&count,
|
||||
sizeof(guint8));
|
||||
guint8 *marshaled_out_public = g_memdup(data, count);
|
||||
guint8 *marshaled_out_public = g_memdup2(data, count);
|
||||
|
||||
TPM2B_PUBLIC out_public = {
|
||||
.size = 0
|
||||
|
Loading…
Reference in New Issue
Block a user