]> sigrok.org Git - libsigrok.git/commit
session: address deprecation of g_memdup(), prepare use of g_memdup2()
authorGerhard Sittig <redacted>
Wed, 22 Dec 2021 11:36:35 +0000 (12:36 +0100)
committerGerhard Sittig <redacted>
Sat, 8 Jan 2022 09:13:21 +0000 (10:13 +0100)
commit64f26f744bf3185eddb07e8bfe9855e3c7bfac19
treec07bbc85ec1edcc106485a44228c5d0180b25d81
parentc1310f7deba7ac1f4ce75fbb5cc9b498ee66aa49
session: address deprecation of g_memdup(), prepare use of g_memdup2()

The g_memdup() routine was deprecated and (very) soon will become
obsolete. Use g_memdup2() when available, which is preferred for its
use of proper size data types.

This is inspired by pulseview commit cf0109112932 which references the
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538
article.
src/session.c