libfprint: Use g_memdup2 everywhere

It's just safer when available.
This commit is contained in:
Marco Trevisan (Treviño)
2022-09-27 12:26:33 +02:00
parent 446cedbcfc
commit 171e65f73f
9 changed files with 11 additions and 9 deletions

View File

@@ -432,7 +432,7 @@ img_process_data (int first_block, FpDeviceVfs301 *dev, const guint8 *buf, int l
usb_send (dev, data, len, NULL); \
}
#define RAW_DATA(x) g_memdup (x, sizeof (x)), sizeof (x)
#define RAW_DATA(x) g_memdup2 (x, sizeof (x)), sizeof (x)
#define IS_VFS301_FP_SEQ_START(b) ((b[0] == 0x01) && (b[1] == 0xfe))