Commit 658c301e authored by Bastien Nocera's avatar Bastien Nocera

lib: Use memmove(), g_memmove() is deprecated

parent dce52ed0
Pipeline #54459 passed with stages
in 2 minutes and 9 seconds
......@@ -365,7 +365,7 @@ static void median_filter(int *data, int size, int filtersize)
i1 = 0;
if (i2 >= size)
i2 = size-1;
g_memmove(sortbuf, data+i1, (i2-i1+1)*sizeof(int));
memmove(sortbuf, data+i1, (i2-i1+1)*sizeof(int));
g_qsort_with_data(sortbuf, i2-i1+1, sizeof(int), cmpint, NULL);
result[i] = sortbuf[(i2-i1+1)/2];
}
......@@ -480,7 +480,7 @@ out:
img->height = line_ind;
img->width = ctx->line_width;
img->flags = FP_IMG_V_FLIPPED;
g_memmove(img->data, output, ctx->line_width * line_ind);
memmove(img->data, output, ctx->line_width * line_ind);
g_free(offsets);
g_free(output);
return img;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment