mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
Merge branch 'fix_depricated' into 'master'
TPM2: fix `g_memdup` deprecated warning See merge request GNOME/libsecret!121
This commit is contained in:
commit
1374b09e61
@ -407,7 +407,7 @@ egg_tpm2_decrypt_master_password(EggTpm2Context *context,
|
|||||||
data = g_variant_get_fixed_array(out_private_variant,
|
data = g_variant_get_fixed_array(out_private_variant,
|
||||||
&count,
|
&count,
|
||||||
sizeof(guint8));
|
sizeof(guint8));
|
||||||
guint8 *marshaled_out_private = g_memdup(data, count);
|
guint8 *marshaled_out_private = g_memdup2(data, count);
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|
||||||
TPM2B_PRIVATE out_private = {
|
TPM2B_PRIVATE out_private = {
|
||||||
@ -434,7 +434,7 @@ egg_tpm2_decrypt_master_password(EggTpm2Context *context,
|
|||||||
data = g_variant_get_fixed_array(out_public_variant,
|
data = g_variant_get_fixed_array(out_public_variant,
|
||||||
&count,
|
&count,
|
||||||
sizeof(guint8));
|
sizeof(guint8));
|
||||||
guint8 *marshaled_out_public = g_memdup(data, count);
|
guint8 *marshaled_out_public = g_memdup2(data, count);
|
||||||
|
|
||||||
TPM2B_PUBLIC out_public = {
|
TPM2B_PUBLIC out_public = {
|
||||||
.size = 0
|
.size = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user