Changeset 552da22 for protocols/twitter
- Timestamp:
- 2023-04-01T20:29:42Z (21 months ago)
- Branches:
- master
- Children:
- 10425b2
- Parents:
- a4ac9c4
- git-author:
- David Cantrell <dcantrell@…> (01-04-23 20:29:42)
- git-committer:
- GitHub <noreply@…> (01-04-23 20:29:42)
- Location:
- protocols/twitter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
ra4ac9c4 r552da22 1117 1117 1118 1118 /* And an identi.ca variant: */ 1119 ret = g_memdup (ret, sizeof(struct prpl));1119 ret = g_memdup2(ret, sizeof(struct prpl)); 1120 1120 ret->name = "identica"; 1121 1121 ret->options = PRPL_OPT_NOOTR; -
protocols/twitter/twitter_lib.c
ra4ac9c4 r552da22 647 647 } 648 648 } else if (text_value && text_value->type == json_string) { 649 txs->text = g_memdup (text_value->u.string.ptr, text_value->u.string.length + 1);649 txs->text = g_memdup2(text_value->u.string.ptr, text_value->u.string.length + 1); 650 650 strip_html(txs->text); 651 651 expand_entities(&txs->text, node, extended_node); … … 674 674 JSON_O_FOREACH(node, k, v) { 675 675 if (strcmp("text", k) == 0 && v->type == json_string) { 676 txs->text = g_memdup (v->u.string.ptr, v->u.string.length + 1);676 txs->text = g_memdup2(v->u.string.ptr, v->u.string.length + 1); 677 677 strip_html(txs->text); 678 678 } else if (strcmp("created_at", k) == 0 && v->type == json_string) {
Note: See TracChangeset
for help on using the changeset viewer.