mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
vfs5011: Use memmove(), g_memmove() is deprecated
This commit is contained in:
@@ -371,7 +371,7 @@ static int process_chunk(struct vfs5011_data *data, int transferred)
|
|||||||
VFS5011_IMAGE_WIDTH) >= DIFFERENCE_THRESHOLD)) {
|
VFS5011_IMAGE_WIDTH) >= DIFFERENCE_THRESHOLD)) {
|
||||||
data->lastline = g_malloc(VFS5011_LINE_SIZE);
|
data->lastline = g_malloc(VFS5011_LINE_SIZE);
|
||||||
data->rows = g_slist_prepend(data->rows, data->lastline);
|
data->rows = g_slist_prepend(data->rows, data->lastline);
|
||||||
g_memmove(data->lastline, linebuf, VFS5011_LINE_SIZE);
|
memmove(data->lastline, linebuf, VFS5011_LINE_SIZE);
|
||||||
data->lines_recorded++;
|
data->lines_recorded++;
|
||||||
if (data->lines_recorded >= data->max_lines_recorded) {
|
if (data->lines_recorded >= data->max_lines_recorded) {
|
||||||
fp_dbg("process_chunk: recorded %d lines, finishing",
|
fp_dbg("process_chunk: recorded %d lines, finishing",
|
||||||
|
|||||||
Reference in New Issue
Block a user