diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2021-04-28 16:39:46 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-04-28 16:39:46 +0200 |
commit | d841e741994f3db2bbdef4a0e1c68542d6ca2887 (patch) | |
tree | 694dd14ca2e2d6f0c2b43b229cdbae7570398695 /gatchat | |
parent | dbbbebf92d786b089508b70f87532613a3f76a03 (diff) | |
download | ofono-d841e741994f3db2bbdef4a0e1c68542d6ca2887.tar.gz |
treewide: Replace g_memdup with g_memdup2
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatmux.c | 2 | ||||
-rw-r--r-- | gatchat/ppp_ipcp.c | 2 | ||||
-rw-r--r-- | gatchat/ppp_ipv6cp.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index 4d89f039..2e4ce9fe 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -908,7 +908,7 @@ static void mux_query_cb(gboolean ok, GAtResult *result, gpointer user_data) } else goto error; - nmsd = g_memdup(msd, sizeof(struct mux_setup_data)); + nmsd = g_memdup2(msd, sizeof(struct mux_setup_data)); g_at_chat_ref(nmsd->chat); if (speed < 0) diff --git a/gatchat/ppp_ipcp.c b/gatchat/ppp_ipcp.c index 125a5429..4d19e1b8 100644 --- a/gatchat/ppp_ipcp.c +++ b/gatchat/ppp_ipcp.c @@ -371,7 +371,7 @@ static enum rcr_result ipcp_server_rcr(struct ipcp_data *ipcp, if (len > 0) { *new_len = len; - *new_options = g_memdup(nak_options, len); + *new_options = g_memdup2(nak_options, len); return RCR_NAK; } diff --git a/gatchat/ppp_ipv6cp.c b/gatchat/ppp_ipv6cp.c index 94feaccd..ac2b7587 100644 --- a/gatchat/ppp_ipv6cp.c +++ b/gatchat/ppp_ipv6cp.c @@ -160,7 +160,7 @@ static enum rcr_result ipv6cp_server_rcr(struct ipv6cp_data *ipv6cp, if (len > 0) { *new_len = len; - *new_options = g_memdup(nak_options, len); + *new_options = g_memdup2(nak_options, len); return RCR_NAK; } |