[buoh] ViewComic: Switch away from g_memdup
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [buoh] ViewComic: Switch away from g_memdup
- Date: Fri, 28 May 2021 21:34:59 +0000 (UTC)
commit f4bd061683b5dfccd31748dff43b3710185628c8
Author: Jan Tojnar <jtojnar gmail com>
Date: Fri May 28 23:33:41 2021 +0200
ViewComic: Switch away from g_memdup
It is deprecated: https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538
src/buoh-view-comic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/buoh-view-comic.c b/src/buoh-view-comic.c
index 42f5547..4afec89 100644
--- a/src/buoh-view-comic.c
+++ b/src/buoh-view-comic.c
@@ -690,7 +690,7 @@ buoh_view_comic_load_finished (BuohViewComic *c_view,
comic_image = g_new0 (BuohComicImage, 1);
comic_image->size = c_view->comic_data->len;
- comic_image->data = (guchar *) g_memdup (c_view->comic_data->str,
+ comic_image->data = (guchar *) g_memdup2 (c_view->comic_data->str,
c_view->comic_data->len);
buoh_comic_set_image (c_view->comic, comic_image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]