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 /src/sim.c | |
parent | dbbbebf92d786b089508b70f87532613a3f76a03 (diff) | |
download | ofono-d841e741994f3db2bbdef4a0e1c68542d6ca2887.tar.gz |
treewide: Replace g_memdup with g_memdup2
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1182,7 +1182,7 @@ static void sim_iidf_read_cb(int ok, int length, int record, clut_len = data[3] * 3; iidf_id = efimg[3] << 8 | efimg[4]; - sim->iidf_image = g_memdup(data, length); + sim->iidf_image = g_memdup2(data, length); /* The path it the same between 2G and 3G */ path_len = sim_ef_db_get_path_3g(SIM_EFIMG_FILEID, path); @@ -1925,7 +1925,7 @@ static void sim_efsst_read_cb(int ok, int length, int record, goto out; } - sim->efsst = g_memdup(data, length); + sim->efsst = g_memdup2(data, length); sim->efsst_length = length; /* @@ -1964,7 +1964,7 @@ static void sim_efest_read_cb(int ok, int length, int record, goto out; } - sim->efest = g_memdup(data, length); + sim->efest = g_memdup2(data, length); sim->efest_length = length; /* @@ -2008,7 +2008,7 @@ static void sim_efust_read_cb(int ok, int length, int record, goto out; } - sim->efust = g_memdup(data, length); + sim->efust = g_memdup2(data, length); sim->efust_length = length; /* @@ -2151,7 +2151,7 @@ static void sim_efli_read_cb(int ok, int length, int record, if (!ok) return; - sim->efli = g_memdup(data, length); + sim->efli = g_memdup2(data, length); sim->efli_length = length; } |