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/smsutil.c | |
parent | dbbbebf92d786b089508b70f87532613a3f76a03 (diff) | |
download | ofono-d841e741994f3db2bbdef4a0e1c68542d6ca2887.tar.gz |
treewide: Replace g_memdup with g_memdup2
Diffstat (limited to 'src/smsutil.c')
-rw-r--r-- | src/smsutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smsutil.c b/src/smsutil.c index e6556df6..6911f839 100644 --- a/src/smsutil.c +++ b/src/smsutil.c @@ -2814,7 +2814,7 @@ static void sr_assembly_load_backup(GHashTable *assembly_table, } /* Node ready, create key and add them to the table */ - id_table_key = g_memdup(msgid, SMS_MSGID_LEN); + id_table_key = g_memdup2(msgid, SMS_MSGID_LEN); g_hash_table_insert(id_table, id_table_key, node); } @@ -3129,7 +3129,7 @@ void status_report_assembly_add_fragment( /* Create node in the message id hashtable if required */ if (node == NULL) { - id_table_key = g_memdup(msgid, SMS_MSGID_LEN); + id_table_key = g_memdup2(msgid, SMS_MSGID_LEN); node = g_new0(struct id_table_node, 1); node->total_mrs = total_mrs; @@ -3240,7 +3240,7 @@ static GSList *sms_tx_load(const char *imsi, const struct dirent *dir) if (sms_deserialize_outgoing(buf, &s, r) == FALSE) goto free_pdu; - list = g_slist_prepend(list, g_memdup(&s, sizeof(s))); + list = g_slist_prepend(list, g_memdup2(&s, sizeof(s))); free_pdu: g_free(pdus[len]); |