libfprint: Use g_memdup2 everywhere

It's just safer when available.
This commit is contained in:
Marco Trevisan (Treviño)
2022-09-27 17:10:33 +02:00
parent 446cedbcfc
commit 171e65f73f
9 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ fpi_print_add_print (FpPrint *print, FpPrint *add)
g_return_if_fail (add->type == FPI_PRINT_NBIS);
g_assert (add->prints->len == 1);
g_ptr_array_add (print->prints, g_memdup (add->prints->pdata[0], sizeof (struct xyt_struct)));
g_ptr_array_add (print->prints, g_memdup2 (add->prints->pdata[0], sizeof (struct xyt_struct)));
}
/**